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

docs: add vs code extensions documentation#14119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ericpaulsen merged 5 commits intomainfromvscode-extensions
Aug 8, 2024
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
make fmt
  • Loading branch information
@matifali
matifali committedAug 4, 2024
commit6b8f6da6e46a8b8aff7b47382a78e50119ff669d
80 changes: 41 additions & 39 deletionsdocs/ides/vscode-extensions.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -42,53 +42,54 @@ Web or using the workspace's terminal.
➜ ls -l
-rw-r--r-- 1 coder coder 0 Aug 1 19:23 Dockerfile
-rw-r--r-- 1 coder coder 8925314 Aug 1 19:40 GitHub.copilot.vsix
```
```

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

```Dockerfile
FROM codercom/enterprise-base:ubuntu
```Dockerfile
FROM codercom/enterprise-base:ubuntu

# Run below commands as root user
USER root
# Run below commands as root user
USER root

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

USER coder
```
USER coder
```

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

1. Pass in the image and below command into your template `startup_script` (be sure to update the filename below):

**Startup Script**

```hcl
resource "coder_agent" "main" {
...
startup_script = "code-server --install-extension /vsix/Github.copilot.vsix"
}
```

**Image Definition**

```hcl
resource "kubernetes_deployment" "main" {
spec {
template {
spec {
container {
name = "dev"
image = "registry.internal/image-name:tag"
}
}
}
}
}
```
1. Pass in the image and below command into your template `startup_script` (be
sure to update the filename below):

**Startup Script**

```hcl
resource "coder_agent" "main" {
...
startup_script = "code-server --install-extension /vsix/Github.copilot.vsix"
}
```

**Image Definition**

```hcl
resource "kubernetes_deployment" "main" {
spec {
template {
spec {
container {
name = "dev"
image = "registry.internal/image-name:tag"
}
}
}
}
}
```

1. Create a workspace using the template.

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

## Using VS Code Desktop

For your local VS Code to pickup extension files in your Coder workspace, include this command
in your `startup_script`, or run in manually in your workspace terminal:
For your local VS Code to pickup extension files in your Coder workspace,
include this command in your `startup_script`, or run in manually in your
workspace terminal:

```console
code --extensions-dir ~/.vscode-server/extensions --install-extension "$extension"
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp