()
| 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']) { |
no test coverage detected
searching dependent graphs…