mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-23 00:22:56 +01:00
esm progress
This commit is contained in:
parent
f420968fc9
commit
c38e22c86b
31 changed files with 521 additions and 370 deletions
|
|
@ -6,6 +6,7 @@
|
|||
import { LanguageServiceDefaults } from './monaco.contribution';
|
||||
import type { CSSWorker } from './cssWorker';
|
||||
import { editor, IDisposable, Uri } 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<CSSWorker>({
|
||||
this._worker = createWebWorker<CSSWorker>({
|
||||
// module that exports the create() method and returns a `CSSWorker` instance
|
||||
moduleId: 'vs/language/css/cssWorker',
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue