diff --git a/packages/typescript/lib/node/decorateLanguageServiceHost.ts b/packages/typescript/lib/node/decorateLanguageServiceHost.ts index fc4e6ec9..ccd57b0e 100644 --- a/packages/typescript/lib/node/decorateLanguageServiceHost.ts +++ b/packages/typescript/lib/node/decorateLanguageServiceHost.ts @@ -85,10 +85,10 @@ export function decorateLanguageServiceHost( languageServiceHost.getScriptSnapshot = fileName => { const virtualScript = updateVirtualScript(fileName); if (virtualScript) { - if (fileName.endsWith('.ts') || fileName.endsWith(".tsx") || fileName.endsWith(".js") || fileName.endsWith(".jsx")) { - // We need to trigger registration of the script file with the project - getScriptSnapshot(fileName) - } + if (fileName.endsWith('.ts') || fileName.endsWith('.tsx') || fileName.endsWith('.js') || fileName.endsWith('.jsx')) { + // We need to trigger registration of the script file with the project + getScriptSnapshot(fileName); + } return virtualScript.snapshot; } return getScriptSnapshot(fileName);