Explorar o código

Merge pull request #62 from microsoft/fix_empty_error

Alexandru Dima %!s(int64=5) %!d(string=hai) anos
pai
achega
94d92a7181
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 		}