Skip to content

Commit 526052b

Browse files
committed
Add RedHat Dev Workspaces
1 parent e7903ca commit 526052b

File tree

1 file changed

+4
-0
lines changed
  • packages/core/src/shared/vscode

1 file changed

+4
-0
lines changed

packages/core/src/shared/vscode/env.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,10 @@ export async function getMachineId(): Promise<string> {
312312
if (process.env.CHE_WORKSPACE_ID) {
313313
return process.env.CHE_WORKSPACE_ID
314314
}
315+
// RedHat Dev Workspaces (run some VSC web variant)
316+
if (process.env.DEVWORKSPACE_ID) {
317+
return process.env.DEVWORKSPACE_ID
318+
}
315319
const proc = new ChildProcess('hostname', [], { collect: true, logging: 'no' })
316320
// TODO: check exit code.
317321
return (await proc.run()).stdout.trim() ?? 'unknown-host'

0 commit comments

Comments
 (0)