MCPcopy Index your code
hub / github.com/microsoft/vscode / getApplicationPath

Function getApplicationPath

src/bootstrap-node.ts:136–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 const appRoot = path.dirname(import.meta.dirname);
135
136 function getApplicationPath(): string {
137 if (process.env['VSCODE_DEV']) {
138 return appRoot;
139 }
140
141 if (process.platform === 'darwin') {
142 return path.dirname(path.dirname(path.dirname(appRoot)));
143 }
144
145 // appRoot = ..\Microsoft VS Code Insiders\<version>\resources\app
146 if (process.platform === 'win32' && product.win32VersionedUpdate) {
147 return path.dirname(path.dirname(path.dirname(appRoot)));
148 }
149
150 return path.dirname(path.dirname(appRoot));
151 }
152
153 function getPortableDataPath(): string {
154 if (process.env['VSCODE_PORTABLE']) {

Callers 1

getPortableDataPathFunction · 0.85

Calls 1

dirnameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…