Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdb9d5b7

Browse files
authored
fix: Renamecoder tosshd on Windows for VS Code Remote support (#974)
On Windows, VS Code Remote requires a parent process of theexecuting shell to be named sshd, otherwise it fails. See:microsoft/vscode-remote-release#5699
1 parente8b1a57 commitdb9d5b7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎provisionersdk/agent.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ var (
77
// to agent install and run script. ${DOWNLOAD_URL} is replaced
88
// with strings.ReplaceAll() when being consumed.
99
agentScripts=map[string]map[string]string{
10+
// On Windows, VS Code Remote requires a parent process of the
11+
// executing shell to be named "sshd", otherwise it fails. See:
12+
// https://github.com/microsoft/vscode-remote-release/issues/5699
1013
"windows": {
1114
"amd64":`
1215
$ProgressPreference = "SilentlyContinue"
13-
Invoke-WebRequest -Uri ${ACCESS_URL}bin/coder-windows-amd64.exe -OutFile $env:TEMP\coder.exe
16+
Invoke-WebRequest -Uri ${ACCESS_URL}bin/coder-windows-amd64.exe -OutFile $env:TEMP\sshd.exe
1417
$env:CODER_AUTH = "${AUTH_TYPE}"
1518
$env:CODER_URL = "${ACCESS_URL}"
16-
Start-Process -FilePath $env:TEMP\coder.exe -ArgumentList "workspaces","agent" -PassThru
19+
Start-Process -FilePath $env:TEMP\sshd.exe -ArgumentList "workspaces","agent" -PassThru
1720
`,
1821
},
1922
"linux": {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp