Towards loading TM grammars in a web worker

This commit is contained in:
Alex Dima
2019-07-08 17:53:56 +02:00
parent c3f72b8b80
commit 49c45742b9
5 changed files with 275 additions and 3 deletions

View File

@@ -26,6 +26,8 @@ import { IThemeMainService } from 'vs/platform/theme/electron-main/themeMainServ
import { endsWith } from 'vs/base/common/strings';
import { RunOnceScheduler } from 'vs/base/common/async';
const RUN_TEXTMATE_IN_WORKER = false;
export interface IWindowCreationOptions {
state: IWindowState;
extensionDevelopmentPath?: string | string[];
@@ -128,6 +130,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
// https://github.com/electron/libchromiumcontent/blob/master/patches/common/chromium/disable_hidden.patch
backgroundThrottling: false,
nodeIntegration: true,
nodeIntegrationInWorker: RUN_TEXTMATE_IN_WORKER,
webviewTag: true
}
};