import { enableHotReload } from '../../src/vs/base/common/hotReload.ts';
import { getSingletonServiceDescriptors, InstantiationType, registerSingleton } from '../../src/vs/platform/instantiation/common/extensions.ts';
import { IWebWorkerService } from '../../src/vs/platform/webWorker/browser/webWorkerService.ts';
import { StandaloneWebWorkerService } from '../../src/vs/editor/standalone/browser/services/standaloneWebWorkerService.ts';
enableHotReload();
registerSingleton(IWebWorkerService, StandaloneWebWorkerService, InstantiationType.Eager);
const descriptors = getSingletonServiceDescriptors();
const originalPush = descriptors.push;
descriptors.push = function (item: any) {
if (item[0] === IWebWorkerService) {
return this.length;
}
return originalPush.call(this, item);
};
globalThis._VSCODE_DISABLE_CSS_IMPORT_MAP = true;
globalThis._VSCODE_USE_RELATIVE_IMPORTS = true;