mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Merge pull request #3023 from andrewbranch/update-03152022
Add new required methods to LanguageServiceHost
This commit is contained in:
commit
ca2692a0dc
1 changed files with 8 additions and 0 deletions
|
|
@ -181,6 +181,14 @@ export class TypeScriptWorker implements ts.LanguageServiceHost, ITypeScriptWork
|
|||
return fileName === this.getDefaultLibFileName(this._compilerOptions);
|
||||
}
|
||||
|
||||
readFile(path: string): string | undefined {
|
||||
return this._getScriptText(path);
|
||||
}
|
||||
|
||||
fileExists(path: string): boolean {
|
||||
return this._getScriptText(path) !== undefined;
|
||||
}
|
||||
|
||||
async getLibFiles(): Promise<Record<string, string>> {
|
||||
return libFileMap;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue