Skip to content

Commit 6b8f6da

Browse files
committed
make fmt
1 parent ea28bff commit 6b8f6da

File tree

1 file changed

+41
-39
lines changed

1 file changed

+41
-39
lines changed

docs/ides/vscode-extensions.md

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -42,53 +42,54 @@ Web or using the workspace's terminal.
4242
➜ ls -l
4343
-rw-r--r-- 1 coder coder 0 Aug 1 19:23 Dockerfile
4444
-rw-r--r-- 1 coder coder 8925314 Aug 1 19:40 GitHub.copilot.vsix
45-
```
45+
```
4646

4747
1. In the Dockerfile, add instructions to make a folder and to copy the `vsix`
4848
files into the newly created folder.
4949

50-
```Dockerfile
51-
FROM codercom/enterprise-base:ubuntu
50+
```Dockerfile
51+
FROM codercom/enterprise-base:ubuntu
5252

53-
# Run below commands as root user
54-
USER root
53+
# Run below commands as root user
54+
USER root
5555

56-
# Download and install VS Code extensions into the container
57-
RUN mkdir -p /vsix
58-
ADD ./GitHub.copilot.vsix /vsix
56+
# Download and install VS Code extensions into the container
57+
RUN mkdir -p /vsix
58+
ADD ./GitHub.copilot.vsix /vsix
5959

60-
USER coder
61-
```
60+
USER coder
61+
```
6262

6363
1. Build the custom image, and push it to your image registry.
6464

65-
1. Pass in the image and below command into your template `startup_script` (be sure to update the filename below):
66-
67-
**Startup Script**
68-
69-
```hcl
70-
resource "coder_agent" "main" {
71-
...
72-
startup_script = "code-server --install-extension /vsix/Github.copilot.vsix"
73-
}
74-
```
75-
76-
**Image Definition**
77-
78-
```hcl
79-
resource "kubernetes_deployment" "main" {
80-
spec {
81-
template {
82-
spec {
83-
container {
84-
name = "dev"
85-
image = "registry.internal/image-name:tag"
86-
}
87-
}
88-
}
89-
}
90-
}
91-
```
65+
1. Pass in the image and below command into your template `startup_script` (be
66+
sure to update the filename below):
67+
68+
**Startup Script**
69+
70+
```hcl
71+
resource "coder_agent" "main" {
72+
...
73+
startup_script = "code-server --install-extension /vsix/Github.copilot.vsix"
74+
}
75+
```
76+
77+
**Image Definition**
78+
79+
```hcl
80+
resource "kubernetes_deployment" "main" {
81+
spec {
82+
template {
83+
spec {
84+
container {
85+
name = "dev"
86+
image = "registry.internal/image-name:tag"
87+
}
88+
}
89+
}
90+
}
91+
}
92+
```
9293

9394
1. Create a workspace using the template.
9495

@@ -121,8 +122,9 @@ SERVICE_URL=https://open-vsx.org/vscode/gallery ITEM_URL=https://open-vsx.org/vs
121122

122123
## Using VS Code Desktop
123124

124-
For your local VS Code to pickup extension files in your Coder workspace, include this command
125-
in your `startup_script`, or run in manually in your workspace terminal:
125+
For your local VS Code to pickup extension files in your Coder workspace,
126+
include this command in your `startup_script`, or run in manually in your
127+
workspace terminal:
126128

127129
```console
128130
code --extensions-dir ~/.vscode-server/extensions --install-extension "$extension"

0 commit comments

Comments
 (0)