You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Source-Code-Organization.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,8 @@ The `core` of VS Code is fully implemented in [TypeScript](https://github.com/mi
22
22
- may use code from: `common`
23
23
-`node`: Source code that requires [Node.JS](https://nodejs.org) APIs
24
24
- may use code from: `common`
25
-
-`electron-sandbox`: Source code that requires the `browser` APIs like access to the DOM and a small subset of APIs to communicate with the Electron main process (anything exposed from `src/vs/base/parts/sandbox/electron-sandbox/globals.ts`
26
-
- may use code from: `common`, `browser`, `electron-sandbox`
25
+
-`electron-browser`: Source code that requires the `browser` APIs like access to the DOM and a small subset of APIs to communicate with the Electron main process (anything exposed from `src/vs/base/parts/sandbox/electron-browser/globals.ts`
26
+
- may use code from: `common`, `browser`, `electron-browser`
27
27
-`electron-utility`: Source code that requires the [Electron utility-process](https://github.com/electron/electron/blob/main/lib/utility/api/module-list.ts) APIs
28
28
- may use code from: `common`, `node`
29
29
-`electron-main`: Source code that requires the [Electron main-process](https://github.com/atom/electron/tree/master/docs#modules-for-the-main-process) APIs
@@ -83,7 +83,7 @@ Add this call into a module-scope so that it is executed during startup. The wor
83
83
The VS Code workbench (`vs/workbench`) is composed of many things to provide a rich development experience. Examples include full text search, integrated git and debug. At its core, the workbench does not have direct dependencies to all these contributions. Instead, we use an internal (as opposed to real extension API) mechanism to contribute these contributions to the workbench.
84
84
85
85
In a nutshell, folders are organised as:
86
-
*`vs/workbench/{common|browser|electron-sandbox}`: workbench core that is as minimal as possible
86
+
*`vs/workbench/{common|browser|electron-browser}`: workbench core that is as minimal as possible
87
87
*`vs/workbench/api`: the provider of the `vscode.d.ts` API (both extension host and workbench implementations)
88
88
*`vs/workbench/services`: workbench core services (should NOT include services that are only used in `vs/workbench/contrib`)
89
89
*`vs/workbench/contrib`: workbench contributions (this is where most of your code should live, see below)
0 commit comments