We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1d57eb commit c258f13Copy full SHA for c258f13
server/src/session.ts
@@ -162,7 +162,9 @@ export class Session {
162
this.connection.console.error(`Failed to find project for ${filePath}`);
163
return;
164
}
165
- project.refreshDiagnostics(); // Show initial diagnostics
+ if (project.languageServiceEnabled) {
166
+ project.refreshDiagnostics(); // Show initial diagnostics
167
+ }
168
169
170
private onDidCloseTextDocument(params: lsp.DidCloseTextDocumentParams) {
@@ -193,7 +195,7 @@ export class Session {
193
195
194
196
197
const project = this.projectService.getDefaultProjectForScriptInfo(scriptInfo);
- if (!project) {
198
+ if (!project || !project.languageServiceEnabled) {
199
200
201
project.refreshDiagnostics();
0 commit comments