Improve code-server example
This commit is contained in:
@@ -11,15 +11,14 @@ tags: [helper, ide]
|
||||
|
||||
Automatically install [code-server](https://github.com/coder/code-server) in a workspace, create an app to access it via the dashboard, install extensions, and pre-configure editor settings.
|
||||
|
||||
```hcl
|
||||
module "code-server" {
|
||||
source = "https://registry.coder.com/modules/code-server"
|
||||
agent_id = coder_agent.example.id
|
||||
}
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
## Highlights
|
||||
|
||||
- Code on any device with a consistent development environment
|
||||
- Use cloud servers to speed up tests, compilations, downloads, and more
|
||||
- Preserve battery life when you're on the go; all intensive tasks run on your
|
||||
server
|
||||
|
||||
## Examples
|
||||
|
||||
@@ -30,6 +29,7 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/):
|
||||
```hcl
|
||||
module "code-server" {
|
||||
source = "https://registry.coder.com/modules/code-server"
|
||||
agent_id = coder_agent.example.id
|
||||
extensions = [
|
||||
"dracula-theme.theme-dracula"
|
||||
]
|
||||
@@ -45,6 +45,7 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte
|
||||
```hcl
|
||||
module "settings" {
|
||||
source = "https://registry.coder.com/modules/code-server"
|
||||
agent_id = coder_agent.example.id
|
||||
extensions = [ "dracula-theme.theme-dracula" ]
|
||||
settings = {
|
||||
"workbench.colorTheme" = "Dracula"
|
||||
@@ -59,6 +60,7 @@ Just run code-server in the background, don't fetch it from GitHub:
|
||||
```hcl
|
||||
module "settings" {
|
||||
source = "https://registry.coder.com/modules/code-server"
|
||||
agent_id = coder_agent.example.id
|
||||
offline = true
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user