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