Skip to content

Commit

Permalink
fix: Do not disable langauge service
Browse files Browse the repository at this point in the history
This PR reverts the change to disable the language service if
@angular/core is not detected in a project while
angular#416 is
being investigated.
  • Loading branch information
kyliau committed Oct 17, 2019
1 parent 156e723 commit fea412b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions server/src/session.ts
Expand Up @@ -83,11 +83,12 @@ export class Session {
break;
case ts.server.ProjectLoadingFinishEvent: {
const {project} = event.data;
if (!isAngularProject(project)) {
project.disableLanguageService();
this.connection.console.info(`Disabling language service for ${
project.projectName} because it is not an Angular project.`);
}
// https://github.com/angular/vscode-ng-language-service/issues/416
// if (!isAngularProject(project)) {
// project.disableLanguageService();
// this.connection.console.info(`Disabling language service for ${
// project.projectName} because it is not an Angular project.`);
// }
this.connection.sendNotification(
projectLoadingNotification.finish, event.data.project.projectName);
break;
Expand Down

0 comments on commit fea412b

Please sign in to comment.