diff --git a/src/tsWorker.ts b/src/tsWorker.ts index 5f00f72e..e5560f86 100644 --- a/src/tsWorker.ts +++ b/src/tsWorker.ts @@ -97,7 +97,7 @@ export class TypeScriptWorker implements ts.LanguageServiceHost, monaco.language getScriptSnapshot(fileName: string): ts.IScriptSnapshot | undefined { const text = this._getScriptText(fileName); - if (!text) { + if (text === undefined) { return; }