From be074b382381d707e691ce432840d09ba7339b9c Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 8 Sep 2023 02:23:36 +0300 Subject: [PATCH 1/4] docs: add VS Code Web to web-ides.md Adds instructions to use VS Code Web as a coder_app. --- docs/ides/web-ides.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/ides/web-ides.md b/docs/ides/web-ides.md index e1e7cecadf761..61644909d4713 100644 --- a/docs/ides/web-ides.md +++ b/docs/ides/web-ides.md @@ -104,6 +104,37 @@ resource "coder_app" "code-server" { } ``` +## VS Code Web + +VS Code supports launching a local web client using the `code serve-web` command. To add VS COde web as a web IDE, Install and start this in your `startup_script` and create a corresponding `coder_app` + +```hcl +resource "coder_agent" "main" { + arch = "amd64" + os = "linux" + startup_script = </tmp/vscode-web.log 2>&1 & + EOF +} +``` + +You also need to add a `coder_app` resource for this, + +resource "coder_app" "vscode-web" { + agent_id = coder_agent.coder.id + slug = "vscode-web" + display_name = "VS Code Web" + url = "http://localhost:13338" + icon = "/icon/code.svg" + share = "owner" + subdomain = true +} + ## JupyterLab Configure your agent and `coder_app` like so to use Jupyter. Notice the From 228fe48f426402919d38d861538feb43985556c0 Mon Sep 17 00:00:00 2001 From: Atif Ali Date: Thu, 7 Sep 2023 23:24:54 +0000 Subject: [PATCH 2/4] make gmt --- docs/ides/web-ides.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/ides/web-ides.md b/docs/ides/web-ides.md index 61644909d4713..ee82b49f0f50a 100644 --- a/docs/ides/web-ides.md +++ b/docs/ides/web-ides.md @@ -106,7 +106,9 @@ resource "coder_app" "code-server" { ## VS Code Web -VS Code supports launching a local web client using the `code serve-web` command. To add VS COde web as a web IDE, Install and start this in your `startup_script` and create a corresponding `coder_app` +VS Code supports launching a local web client using the `code serve-web` +command. To add VS COde web as a web IDE, Install and start this in your +`startup_script` and create a corresponding `coder_app` ```hcl resource "coder_agent" "main" { @@ -125,15 +127,9 @@ resource "coder_agent" "main" { You also need to add a `coder_app` resource for this, -resource "coder_app" "vscode-web" { - agent_id = coder_agent.coder.id - slug = "vscode-web" - display_name = "VS Code Web" - url = "http://localhost:13338" - icon = "/icon/code.svg" - share = "owner" - subdomain = true -} +resource "coder_app" "vscode-web" { agent_id = coder_agent.coder.id slug = +"vscode-web" display_name = "VS Code Web" url = "http://localhost:13338" icon = +"/icon/code.svg" share = "owner" subdomain = true } ## JupyterLab From 577d11dab9b715263f5815ecdbcea105f202ddb8 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Sun, 10 Sep 2023 05:18:58 +0300 Subject: [PATCH 3/4] fix version to 1.82.0 --- docs/ides/web-ides.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/ides/web-ides.md b/docs/ides/web-ides.md index ee82b49f0f50a..26b9a0662f084 100644 --- a/docs/ides/web-ides.md +++ b/docs/ides/web-ides.md @@ -117,13 +117,15 @@ resource "coder_agent" "main" { startup_script = </tmp/vscode-web.log 2>&1 & EOF } ``` +> [!NOTE] +> `code serve-web` was introduced in version 1.82.0 (August 2023). You also need to add a `coder_app` resource for this, From 939d75fad28413a1628f968d764199a8133373e6 Mon Sep 17 00:00:00 2001 From: Atif Ali Date: Sun, 10 Sep 2023 02:24:02 +0000 Subject: [PATCH 4/4] fmt --- docs/ides/web-ides.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ides/web-ides.md b/docs/ides/web-ides.md index 26b9a0662f084..50fdaa7f7f456 100644 --- a/docs/ides/web-ides.md +++ b/docs/ides/web-ides.md @@ -124,8 +124,8 @@ resource "coder_agent" "main" { EOF } ``` -> [!NOTE] -> `code serve-web` was introduced in version 1.82.0 (August 2023). + +> [!NOTE] > `code serve-web` was introduced in version 1.82.0 (August 2023). You also need to add a `coder_app` resource for this,