MCPcopy
hub / github.com/microsoft/vscode / getPortableDataPath

Function getPortableDataPath

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

Source from the content-addressed store, hash-verified

151 }
152
153 function getPortableDataPath(): string {
154 if (process.env['VSCODE_PORTABLE']) {
155 return process.env['VSCODE_PORTABLE'];
156 }
157
158 if (process.platform === 'win32' || process.platform === 'linux') {
159 return path.join(getApplicationPath(), 'data');
160 }
161
162 const portableDataName = product.portable || `${product.applicationName}-portable-data`;
163 return path.join(path.dirname(getApplicationPath()), portableDataName);
164 }
165
166 const portableDataPath = getPortableDataPath();
167 const isPortable = !('target' in product) && fs.existsSync(portableDataPath);

Callers 1

configurePortableFunction · 0.85

Calls 3

getApplicationPathFunction · 0.85
joinMethod · 0.65
dirnameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…