From c52f03ccf7271e7518df3f868c923124c7aba09a Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Fri, 10 Feb 2017 15:46:51 -0800 Subject: [PATCH] Only check tsc version for ts files. Fixes #17736 --- extensions/typescript/src/features/bufferSyncSupport.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/typescript/src/features/bufferSyncSupport.ts b/extensions/typescript/src/features/bufferSyncSupport.ts index c21ca755f70..f200eadea34 100644 --- a/extensions/typescript/src/features/bufferSyncSupport.ts +++ b/extensions/typescript/src/features/bufferSyncSupport.ts @@ -182,7 +182,9 @@ export default class BufferSyncSupport { this.syncedBuffers[filepath] = syncedBuffer; syncedBuffer.open(); this.requestDiagnostic(filepath); - this.checkTSCVersion(); + if (document.languageId === 'typescript' || document.languageId === 'typescriptreact') { + this.checkTSCVersion(); + } } private onDidCloseTextDocument(document: TextDocument): void { -- GitLab