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 e7903ca commit 526052bCopy full SHA for 526052b
packages/core/src/shared/vscode/env.ts
@@ -312,6 +312,10 @@ export async function getMachineId(): Promise<string> {
312
if (process.env.CHE_WORKSPACE_ID) {
313
return process.env.CHE_WORKSPACE_ID
314
}
315
+ // RedHat Dev Workspaces (run some VSC web variant)
316
+ if (process.env.DEVWORKSPACE_ID) {
317
+ return process.env.DEVWORKSPACE_ID
318
+ }
319
const proc = new ChildProcess('hostname', [], { collect: true, logging: 'no' })
320
// TODO: check exit code.
321
return (await proc.run()).stdout.trim() ?? 'unknown-host'
0 commit comments