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

Commit089ff5d

Browse files
matifalipull[bot]
authored andcommitted
docs: add VS Code Web to web-ides (#9591)
1 parentee6c627 commit089ff5d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

‎docs/ides/web-ides.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,35 @@ resource "coder_app" "code-server" {
104104
}
105105
```
106106

107+
##VS Code Web
108+
109+
VS Code supports launching a local web client using the`code serve-web`
110+
command. To add VS COde web as a web IDE, Install and start this in your
111+
`startup_script` and create a corresponding`coder_app`
112+
113+
```hcl
114+
resource "coder_agent" "main" {
115+
arch = "amd64"
116+
os = "linux"
117+
startup_script = <<EOF
118+
#!/bin/sh
119+
# install VS Code
120+
curl -L "https://update.code.visualstudio.com/1.82.0/linux-deb-x64/stable" -o /tmp/code.deb
121+
sudo dpkg -i /tmp/code.deb && sudo apt-get install -f -y
122+
# start the web server on a specific port
123+
code serve-web --port 13338 --without-connection-token --accept-server-license-terms >/tmp/vscode-web.log 2>&1 &
124+
EOF
125+
}
126+
```
127+
128+
>[!NOTE] >`code serve-web` was introduced in version 1.82.0 (August 2023).
129+
130+
You also need to add a`coder_app` resource for this,
131+
132+
resource "coder_app" "vscode-web" { agent_id = coder_agent.coder.id slug =
133+
"vscode-web" display_name = "VS Code Web" url = "http://localhost:13338" icon =
134+
"/icon/code.svg" share = "owner" subdomain = true }
135+
107136
##JupyterLab
108137

109138
Configure your agent and`coder_app` like so to use Jupyter. Notice the

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp