Browse Source

Merge pull request #62 from microsoft/fix_empty_error

Alexandru Dima 4 years ago
parent
commit
94d92a7181
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/tsWorker.ts

+ 1 - 1
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;
 		}