mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-23 00:22:56 +01:00
Publicly expose getters for the lang server and extra libs
This commit is contained in:
parent
c33c68bdcc
commit
85d22afc03
1 changed files with 8 additions and 0 deletions
|
|
@ -54,6 +54,14 @@ export class TypeScriptWorker implements ts.LanguageServiceHost, ITypeScriptWork
|
||||||
return this._compilerOptions;
|
return this._compilerOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getLanguageService(): ts.LanguageService {
|
||||||
|
return this._languageService;
|
||||||
|
}
|
||||||
|
|
||||||
|
getExtraLibs(): IExtraLibs {
|
||||||
|
return this._extraLibs;
|
||||||
|
}
|
||||||
|
|
||||||
getScriptFileNames(): string[] {
|
getScriptFileNames(): string[] {
|
||||||
const allModels = this._ctx.getMirrorModels().map((model) => model.uri);
|
const allModels = this._ctx.getMirrorModels().map((model) => model.uri);
|
||||||
const models = allModels.filter((uri) => !fileNameIsLib(uri)).map((uri) => uri.toString());
|
const models = allModels.filter((uri) => !fileNameIsLib(uri)).map((uri) => uri.toString());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue