Browse Source

Merge pull request #62 from microsoft/fix_empty_error

Alexandru Dima 5 năm trước cách đây
mục cha
commit
94d92a7181
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
 		}