We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b161da commit 662ac58Copy full SHA for 662ac58
packages/core/src/shared/vscode/env.ts
@@ -307,6 +307,11 @@ export async function getMachineId(): Promise<string> {
307
// TODO: use `vscode.env.machineId` instead?
308
return 'browser'
309
}
310
+ // Eclipse Che-based envs (backing compute rotates, not classified as a web instance)
311
+ // TODO: use `vscode.env.machineId` instead?
312
+ if (process.env.CHE_WORKSPACE_ID) {
313
+ return process.env.CHE_WORKSPACE_ID
314
+ }
315
const proc = new ChildProcess('hostname', [], { collect: true, logging: 'no' })
316
// TODO: check exit code.
317
return (await proc.run()).stdout.trim() ?? 'unknown-host'
0 commit comments