diff --git a/src/language/typescript/tsWorker.ts b/src/language/typescript/tsWorker.ts index a6f10943..b7465c8a 100644 --- a/src/language/typescript/tsWorker.ts +++ b/src/language/typescript/tsWorker.ts @@ -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> { return libFileMap; }