Merge pull request #62 from microsoft/fix_empty_error

This commit is contained in:
Alexandru Dima 2020-08-07 22:33:11 +02:00 committed by GitHub
commit 94d92a7181
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ export class TypeScriptWorker implements ts.LanguageServiceHost, monaco.language
getScriptSnapshot(fileName: string): ts.IScriptSnapshot | undefined { getScriptSnapshot(fileName: string): ts.IScriptSnapshot | undefined {
const text = this._getScriptText(fileName); const text = this._getScriptText(fileName);
if (!text) { if (text === undefined) {
return; return;
} }