Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/build/buildfile.ts
4770 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import type { IEntryPoint } from './lib/bundle.ts';
7
8
function createModuleDescription(name: string): IEntryPoint {
9
return {
10
name
11
};
12
}
13
14
export const workerEditor = createModuleDescription('vs/editor/common/services/editorWebWorkerMain');
15
export const workerExtensionHost = createModuleDescription('vs/workbench/api/worker/extensionHostWorkerMain');
16
export const workerNotebook = createModuleDescription('vs/workbench/contrib/notebook/common/services/notebookWebWorkerMain');
17
export const workerLanguageDetection = createModuleDescription('vs/workbench/services/languageDetection/browser/languageDetectionWebWorkerMain');
18
export const workerLocalFileSearch = createModuleDescription('vs/workbench/services/search/worker/localFileSearchMain');
19
export const workerProfileAnalysis = createModuleDescription('vs/platform/profiling/electron-browser/profileAnalysisWorkerMain');
20
export const workerOutputLinks = createModuleDescription('vs/workbench/contrib/output/common/outputLinkComputerMain');
21
export const workerBackgroundTokenization = createModuleDescription('vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateTokenizationWorker.workerMain');
22
23
export const workbenchDesktop = [
24
createModuleDescription('vs/workbench/contrib/debug/node/telemetryApp'),
25
createModuleDescription('vs/platform/files/node/watcher/watcherMain'),
26
createModuleDescription('vs/platform/terminal/node/ptyHostMain'),
27
createModuleDescription('vs/workbench/api/node/extensionHostProcess'),
28
createModuleDescription('vs/workbench/workbench.desktop.main')
29
];
30
31
export const workbenchWeb = createModuleDescription('vs/workbench/workbench.web.main.internal');
32
33
export const keyboardMaps = [
34
createModuleDescription('vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux'),
35
createModuleDescription('vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin'),
36
createModuleDescription('vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win')
37
];
38
39
export const code = [
40
// 'vs/code/electron-main/main' is not included here because it comes in via ./src/main.js
41
// 'vs/code/node/cli' is not included here because it comes in via ./src/cli.js
42
createModuleDescription('vs/code/node/cliProcessMain'),
43
createModuleDescription('vs/code/electron-utility/sharedProcess/sharedProcessMain'),
44
createModuleDescription('vs/code/electron-browser/workbench/workbench'),
45
];
46
47
export const codeWeb = createModuleDescription('vs/code/browser/workbench/workbench');
48
49
export const codeServer = [
50
// 'vs/server/node/server.main' is not included here because it gets inlined via ./src/server-main.js
51
// 'vs/server/node/server.cli' is not included here because it gets inlined via ./src/server-cli.js
52
createModuleDescription('vs/workbench/api/node/extensionHostProcess'),
53
createModuleDescription('vs/platform/files/node/watcher/watcherMain'),
54
createModuleDescription('vs/platform/terminal/node/ptyHostMain')
55
];
56
57
export const entrypoint = createModuleDescription;
58
59
const buildfile = {
60
workerEditor,
61
workerExtensionHost,
62
workerNotebook,
63
workerLanguageDetection,
64
workerLocalFileSearch,
65
workerProfileAnalysis,
66
workerOutputLinks,
67
workerBackgroundTokenization,
68
workbenchDesktop,
69
workbenchWeb,
70
keyboardMaps,
71
code,
72
codeWeb,
73
codeServer,
74
entrypoint: createModuleDescription
75
};
76
77
export default buildfile;
78
79