Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 13, 2024
1 parent b7b258d commit 6bba10d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/typescript/lib/node/decorateLanguageServiceHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6bba10d

Please sign in to comment.