Explorar el Código

Merge pull request #62 from microsoft/fix_empty_error

Alexandru Dima hace 5 años
padre
commit
94d92a7181
Se han modificado 1 ficheros con 1 adiciones y 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;
 		}