mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 04:36:23 +00:00
* Run our build scripts directly as typescript #277567 Follow up on #276864 For #277526 * Remove a few more ts-node references * Fix linux and script reference * Remove `_build-script` ref * Fix script missing closing quote * use type only import * Fix export * Make sure to run copy-policy-dto * Make sure we run the copy-policy-dto script * Enable `verbatimModuleSyntax` * Pipelines fixes * Try adding explicit ext to path * Fix bad edit * Revert extra `--` --------- Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
81 lines
3.7 KiB
JavaScript
81 lines
3.7 KiB
JavaScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
// @ts-check
|
|
|
|
/**
|
|
* @param {string} name
|
|
* @returns {import('./lib/bundle.js').IEntryPoint}
|
|
*/
|
|
export function createModuleDescription(name) {
|
|
return {
|
|
name
|
|
};
|
|
}
|
|
|
|
export const workerEditor = createModuleDescription('vs/editor/common/services/editorWebWorkerMain');
|
|
export const workerExtensionHost = createModuleDescription('vs/workbench/api/worker/extensionHostWorkerMain');
|
|
export const workerNotebook = createModuleDescription('vs/workbench/contrib/notebook/common/services/notebookWebWorkerMain');
|
|
export const workerLanguageDetection = createModuleDescription('vs/workbench/services/languageDetection/browser/languageDetectionWebWorkerMain');
|
|
export const workerLocalFileSearch = createModuleDescription('vs/workbench/services/search/worker/localFileSearchMain');
|
|
export const workerProfileAnalysis = createModuleDescription('vs/platform/profiling/electron-browser/profileAnalysisWorkerMain');
|
|
export const workerOutputLinks = createModuleDescription('vs/workbench/contrib/output/common/outputLinkComputerMain');
|
|
export const workerBackgroundTokenization = createModuleDescription('vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateTokenizationWorker.workerMain');
|
|
|
|
export const 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/workbench.desktop.main')
|
|
];
|
|
|
|
export const workbenchWeb = createModuleDescription('vs/workbench/workbench.web.main');
|
|
|
|
export const keyboardMaps = [
|
|
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')
|
|
];
|
|
|
|
export const code = [
|
|
// 'vs/code/electron-main/main' is not included here because it comes in via ./src/main.js
|
|
// 'vs/code/node/cli' is not included here because it comes in via ./src/cli.js
|
|
createModuleDescription('vs/code/node/cliProcessMain'),
|
|
createModuleDescription('vs/code/electron-utility/sharedProcess/sharedProcessMain'),
|
|
createModuleDescription('vs/code/electron-browser/workbench/workbench'),
|
|
];
|
|
|
|
export const codeWeb = createModuleDescription('vs/code/browser/workbench/workbench');
|
|
|
|
export const codeServer = [
|
|
// 'vs/server/node/server.main' is not included here because it gets inlined via ./src/server-main.js
|
|
// 'vs/server/node/server.cli' is not included here because it gets inlined via ./src/server-cli.js
|
|
createModuleDescription('vs/workbench/api/node/extensionHostProcess'),
|
|
createModuleDescription('vs/platform/files/node/watcher/watcherMain'),
|
|
createModuleDescription('vs/platform/terminal/node/ptyHostMain')
|
|
];
|
|
|
|
export const entrypoint = createModuleDescription;
|
|
|
|
const buildfile = {
|
|
workerEditor,
|
|
workerExtensionHost,
|
|
workerNotebook,
|
|
workerLanguageDetection,
|
|
workerLocalFileSearch,
|
|
workerProfileAnalysis,
|
|
workerOutputLinks,
|
|
workerBackgroundTokenization,
|
|
workbenchDesktop,
|
|
workbenchWeb,
|
|
keyboardMaps,
|
|
code,
|
|
codeWeb,
|
|
codeServer,
|
|
entrypoint: createModuleDescription
|
|
};
|
|
|
|
export default buildfile;
|