mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
Update src/workerManager.ts
Co-authored-by: Wesley Wigham <wewigham@microsoft.com>
This commit is contained in:
parent
86f6d762df
commit
0dbccdea3d
1 changed files with 2 additions and 1 deletions
|
|
@ -62,7 +62,8 @@ export class WorkerManager {
|
||||||
private _getClient(): Promise<TypeScriptWorker> {
|
private _getClient(): Promise<TypeScriptWorker> {
|
||||||
if (!this._client) {
|
if (!this._client) {
|
||||||
// Adds all of the .d.ts lib files into Monaco as editor models,
|
// Adds all of the .d.ts lib files into Monaco as editor models,
|
||||||
// this allows themm to show up in peek (and allow editing if desired).
|
// this allows them to show up in peek (and allow editing if desired).
|
||||||
|
|
||||||
for (const key in libFileMap) {
|
for (const key in libFileMap) {
|
||||||
monaco.editor.createModel(libFileMap[key], "javascript", monaco.Uri.file(key))
|
monaco.editor.createModel(libFileMap[key], "javascript", monaco.Uri.file(key))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue