2015-11-13 21:39:38 +08:00
|
|
|
/*---------------------------------------------------------------------------------------------
|
|
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
|
2022-03-02 23:36:52 +08:00
|
|
|
/**
|
|
|
|
* @param {string} name
|
2023-06-30 22:44:09 +08:00
|
|
|
* @param {string[]=} exclude
|
2024-08-23 18:18:26 +08:00
|
|
|
* @returns {import('./lib/bundle').IEntryPoint}
|
2022-03-02 23:36:52 +08:00
|
|
|
*/
|
|
|
|
function createModuleDescription(name, exclude) {
|
|
|
|
|
2024-06-28 21:45:52 +08:00
|
|
|
let excludes = ['vs/css'];
|
2022-03-02 23:36:52 +08:00
|
|
|
if (Array.isArray(exclude) && exclude.length > 0) {
|
|
|
|
excludes = excludes.concat(exclude);
|
|
|
|
}
|
|
|
|
|
|
|
|
return {
|
|
|
|
name: name,
|
|
|
|
include: [],
|
|
|
|
exclude: excludes
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} name
|
|
|
|
*/
|
2024-08-20 20:00:18 +08:00
|
|
|
function createEditorWorkerModuleDescription(name) {
|
2024-08-14 22:19:43 +08:00
|
|
|
const amdVariant = createModuleDescription(name, ['vs/base/common/worker/simpleWorker', 'vs/editor/common/services/editorSimpleWorker']);
|
|
|
|
amdVariant.target = 'amd';
|
|
|
|
|
|
|
|
const esmVariant = { ...amdVariant, dest: undefined };
|
|
|
|
esmVariant.target = 'esm';
|
2024-08-20 20:00:18 +08:00
|
|
|
esmVariant.name = `${esmVariant.name}.esm`;
|
2024-08-14 22:19:43 +08:00
|
|
|
|
|
|
|
return [amdVariant, esmVariant];
|
2022-03-02 23:36:52 +08:00
|
|
|
}
|
2019-06-21 09:03:50 +08:00
|
|
|
|
2024-08-20 23:51:26 +08:00
|
|
|
// TODO@esm take the editor simple worker top level and rename away from "base"
|
2021-10-25 21:39:26 +08:00
|
|
|
exports.base = [
|
|
|
|
{
|
2021-11-10 06:41:02 +08:00
|
|
|
name: 'vs/editor/common/services/editorSimpleWorker',
|
|
|
|
include: ['vs/base/common/worker/simpleWorker'],
|
2024-06-28 21:45:52 +08:00
|
|
|
exclude: [],
|
2022-06-17 04:01:19 +08:00
|
|
|
prepend: [
|
|
|
|
{ path: 'vs/loader.js' },
|
2022-06-23 03:30:09 +08:00
|
|
|
{ path: 'vs/base/worker/workerMain.js' }
|
2022-06-17 04:01:19 +08:00
|
|
|
],
|
2024-08-14 22:19:43 +08:00
|
|
|
dest: 'vs/base/worker/workerMain.js',
|
|
|
|
target: 'amd'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'vs/editor/common/services/editorSimpleWorker.esm',
|
|
|
|
target: 'esm'
|
2021-10-25 21:39:26 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'vs/base/common/worker/simpleWorker',
|
2024-06-28 21:45:52 +08:00
|
|
|
exclude: [],
|
2024-08-20 23:51:26 +08:00
|
|
|
target: 'amd'
|
2021-10-25 21:39:26 +08:00
|
|
|
}
|
|
|
|
];
|
2019-03-14 19:25:42 +08:00
|
|
|
|
2024-08-14 22:19:43 +08:00
|
|
|
exports.workerExtensionHost = createEditorWorkerModuleDescription('vs/workbench/api/worker/extensionHostWorker');
|
|
|
|
exports.workerNotebook = createEditorWorkerModuleDescription('vs/workbench/contrib/notebook/common/services/notebookSimpleWorker');
|
|
|
|
exports.workerLanguageDetection = createEditorWorkerModuleDescription('vs/workbench/services/languageDetection/browser/languageDetectionSimpleWorker');
|
|
|
|
exports.workerLocalFileSearch = createEditorWorkerModuleDescription('vs/workbench/services/search/worker/localFileSearch');
|
|
|
|
exports.workerProfileAnalysis = createEditorWorkerModuleDescription('vs/platform/profiling/electron-sandbox/profileAnalysisWorker');
|
2024-08-20 20:00:18 +08:00
|
|
|
exports.workerOutputLinks = createEditorWorkerModuleDescription('vs/workbench/contrib/output/common/outputLinkComputer');
|
|
|
|
exports.workerBackgroundTokenization = createEditorWorkerModuleDescription('vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateTokenizationWorker.worker');
|
2019-08-15 00:02:24 +08:00
|
|
|
|
2024-09-27 14:04:00 +08:00
|
|
|
exports.workbenchDesktop = [
|
|
|
|
createModuleDescription('vs/workbench/contrib/debug/node/telemetryApp'),
|
|
|
|
createModuleDescription('vs/platform/files/node/watcher/watcherMain'),
|
|
|
|
createModuleDescription('vs/platform/terminal/node/ptyHostMain'),
|
|
|
|
createModuleDescription('vs/workbench/api/node/extensionHostProcess'),
|
|
|
|
createModuleDescription('vs/workbench/contrib/issue/electron-sandbox/issueReporterMain'),
|
|
|
|
createModuleDescription('vs/workbench/workbench.desktop.main')
|
|
|
|
];
|
2022-03-02 23:36:52 +08:00
|
|
|
|
2024-09-27 14:04:00 +08:00
|
|
|
exports.workbenchWeb = createModuleDescription('vs/workbench/workbench.web.main');
|
2019-06-21 09:03:50 +08:00
|
|
|
|
|
|
|
exports.keyboardMaps = [
|
2021-08-13 22:59:46 +08:00
|
|
|
createModuleDescription('vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux'),
|
|
|
|
createModuleDescription('vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin'),
|
|
|
|
createModuleDescription('vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win')
|
2019-06-21 09:03:50 +08:00
|
|
|
];
|
2019-03-14 19:25:42 +08:00
|
|
|
|
2022-03-02 23:36:52 +08:00
|
|
|
exports.code = [
|
|
|
|
createModuleDescription('vs/code/electron-main/main'),
|
2023-02-20 15:09:48 +08:00
|
|
|
createModuleDescription('vs/code/node/cli'),
|
|
|
|
createModuleDescription('vs/code/node/cliProcessMain', ['vs/code/node/cli']),
|
2024-09-05 15:49:23 +08:00
|
|
|
createModuleDescription('vs/code/electron-utility/sharedProcess/sharedProcessMain'),
|
2022-03-02 23:36:52 +08:00
|
|
|
createModuleDescription('vs/code/electron-sandbox/processExplorer/processExplorerMain')
|
|
|
|
];
|
2015-11-13 21:39:38 +08:00
|
|
|
|
2024-08-19 22:54:29 +08:00
|
|
|
exports.codeWeb = [
|
|
|
|
createModuleDescription('vs/code/browser/workbench/workbench')
|
|
|
|
];
|
|
|
|
|
2021-08-13 22:59:46 +08:00
|
|
|
exports.entrypoint = createModuleDescription;
|