mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
Merge pull request #62 from microsoft/fix_empty_error
This commit is contained in:
commit
94d92a7181
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue