Skip to content

Commit fea412b

Browse files
author
Keen Yee Liau
committed
fix: Do not disable langauge service
This PR reverts the change to disable the language service if @angular/core is not detected in a project while #416 is being investigated.
1 parent 156e723 commit fea412b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

server/src/session.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,12 @@ export class Session {
8383
break;
8484
case ts.server.ProjectLoadingFinishEvent: {
8585
const {project} = event.data;
86-
if (!isAngularProject(project)) {
87-
project.disableLanguageService();
88-
this.connection.console.info(`Disabling language service for ${
89-
project.projectName} because it is not an Angular project.`);
90-
}
86+
// https://github.com/angular/vscode-ng-language-service/issues/416
87+
// if (!isAngularProject(project)) {
88+
// project.disableLanguageService();
89+
// this.connection.console.info(`Disabling language service for ${
90+
// project.projectName} because it is not an Angular project.`);
91+
// }
9192
this.connection.sendNotification(
9293
projectLoadingNotification.finish, event.data.project.projectName);
9394
break;

0 commit comments

Comments
 (0)