mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
amd progress
This commit is contained in:
parent
f420968fc9
commit
967982e245
20 changed files with 283 additions and 111 deletions
|
|
@ -6,6 +6,7 @@
|
|||
import { LanguageServiceDefaults } from './monaco.contribution';
|
||||
import type { JSONWorker } from './jsonWorker';
|
||||
import { IDisposable, Uri, editor } from '../../fillers/monaco-editor-core';
|
||||
import { createWebWorker } from '../common/workers';
|
||||
|
||||
const STOP_WHEN_IDLE_FOR = 2 * 60 * 1000; // 2min
|
||||
|
||||
|
|
@ -55,7 +56,7 @@ export class WorkerManager {
|
|||
this._lastUsedTime = Date.now();
|
||||
|
||||
if (!this._client) {
|
||||
this._worker = editor.createWebWorker<JSONWorker>({
|
||||
this._worker = createWebWorker<JSONWorker>({
|
||||
// module that exports the create() method and returns a `JSONWorker` instance
|
||||
moduleId: 'vs/language/json/jsonWorker',
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue