@@ -14,7 +14,7 @@ Automatically install [Visual Studio Code Server](https://code.visualstudio.com/
1414module "vscode-web" {
1515 count = data.coder_workspace.me.start_count
1616 source = "registry.coder.com/coder/vscode-web/coder"
17- version = "1.3.1 "
17+ version = "1.4.0 "
1818 agent_id = coder_agent.example.id
1919 accept_license = true
2020}
@@ -30,7 +30,7 @@ module "vscode-web" {
3030module "vscode-web" {
3131 count = data.coder_workspace.me.start_count
3232 source = "registry.coder.com/coder/vscode-web/coder"
33- version = "1.3.1 "
33+ version = "1.4.0 "
3434 agent_id = coder_agent.example.id
3535 install_prefix = "/home/coder/.vscode-web"
3636 folder = "/home/coder"
@@ -44,7 +44,7 @@ module "vscode-web" {
4444module "vscode-web" {
4545 count = data.coder_workspace.me.start_count
4646 source = "registry.coder.com/coder/vscode-web/coder"
47- version = "1.3.1 "
47+ version = "1.4.0 "
4848 agent_id = coder_agent.example.id
4949 extensions = ["github.copilot", "ms-python.python", "ms-toolsai.jupyter"]
5050 accept_license = true
@@ -59,7 +59,7 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte
5959module "vscode-web" {
6060 count = data.coder_workspace.me.start_count
6161 source = "registry.coder.com/coder/vscode-web/coder"
62- version = "1.3.1 "
62+ version = "1.4.0 "
6363 agent_id = coder_agent.example.id
6464 extensions = ["dracula-theme.theme-dracula"]
6565 settings = {
@@ -77,9 +77,24 @@ By default, this module installs the latest. To pin a specific version, retrieve
7777module "vscode-web" {
7878 count = data.coder_workspace.me.start_count
7979 source = "registry.coder.com/coder/vscode-web/coder"
80- version = "1.3.1 "
80+ version = "1.4.0 "
8181 agent_id = coder_agent.example.id
8282 commit_id = "e54c774e0add60467559eb0d1e229c6452cf8447"
8383 accept_license = true
8484}
8585```
86+
87+ ### Open an existing workspace on startup
88+
89+ To open an existing workspace on startup the ` workspace ` parameter can be used to represent a path on disk to a ` code-workspace ` file.
90+ Note: Either ` workspace ` or ` folder ` can be used, but not both simultaneously. The ` code-workspace ` file must already be present on disk.
91+
92+ ``` tf
93+ module "vscode-web" {
94+ count = data.coder_workspace.me.start_count
95+ source = "registry.coder.com/coder/vscode-web/coder"
96+ version = "1.4.0"
97+ agent_id = coder_agent.example.id
98+ workspace = "/home/coder/coder.code-workspace"
99+ }
100+ ```
0 commit comments