@@ -13,8 +13,9 @@ Automatically install [code-server](https://github.com/coder/code-server) in a w
1313
1414``` hcl
1515module "code-server" {
16- source = "https://registry.coder.com/modules/code-server"
17- agent_id = coder_agent.example.id
16+ source = "registry.coder.com/modules/code-server/coder"
17+ version = "1.0.0"
18+ agent_id = coder_agent.example.id
1819}
1920```
2021
@@ -26,7 +27,8 @@ module "code-server" {
2627
2728``` hcl
2829module "code-server" {
29- source = "https://registry.coder.com/modules/code-server"
30+ source = "registry.coder.com/modules/code-server/coder"
31+ version = "1.0.0"
3032 agent_id = coder_agent.example.id
3133 install_version = "4.8.3"
3234}
@@ -38,11 +40,12 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/):
3840
3941``` hcl
4042module "code-server" {
41- source = "https://registry.coder.com/modules/code-server"
42- agent_id = coder_agent.example.id
43- extensions = [
44- "dracula-theme.theme-dracula"
45- ]
43+ source = "registry.coder.com/modules/code-server/coder"
44+ version = "1.0.0"
45+ agent_id = coder_agent.example.id
46+ extensions = [
47+ "dracula-theme.theme-dracula"
48+ ]
4649}
4750```
4851
@@ -54,12 +57,13 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte
5457
5558``` hcl
5659module "settings" {
57- source = "https://registry.coder.com/modules/code-server"
58- agent_id = coder_agent.example.id
59- extensions = [ "dracula-theme.theme-dracula" ]
60- settings = {
61- "workbench.colorTheme" = "Dracula"
62- }
60+ source = "registry.coder.com/modules/code-server/coder"
61+ version = "1.0.0"
62+ agent_id = coder_agent.example.id
63+ extensions = [ "dracula-theme.theme-dracula" ]
64+ settings = {
65+ "workbench.colorTheme" = "Dracula"
66+ }
6367}
6468```
6569
@@ -69,9 +73,10 @@ Just run code-server in the background, don't fetch it from GitHub:
6973
7074``` hcl
7175module "settings" {
72- source = "https://registry.coder.com/modules/code-server"
73- agent_id = coder_agent.example.id
74- extensions = [ "dracula-theme.theme-dracula", "ms-azuretools.vscode-docker" ]
76+ source = "registry.coder.com/modules/code-server/coder"
77+ version = "1.0.0"
78+ agent_id = coder_agent.example.id
79+ extensions = [ "dracula-theme.theme-dracula", "ms-azuretools.vscode-docker" ]
7580}
7681```
7782
@@ -81,8 +86,9 @@ Just run code-server in the background, don't fetch it from GitHub:
8186
8287``` hcl
8388module "settings" {
84- source = "https://registry.coder.com/modules/code-server"
85- agent_id = coder_agent.example.id
86- offline = true
89+ source = "registry.coder.com/modules/code-server/coder"
90+ version = "1.0.0"
91+ agent_id = coder_agent.example.id
92+ offline = true
8793}
8894```
0 commit comments