Update src/workerManager.ts

Co-authored-by: Wesley Wigham <wewigham@microsoft.com>
This commit is contained in:
Orta Therox 2020-07-09 07:28:29 -04:00 committed by GitHub
parent 86f6d762df
commit 0dbccdea3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))
} }