Skip to content

Commit cf6837e

Browse files
authored
feat: add code-server app customization (#13)
1 parent fb15bd3 commit cf6837e

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

src/code-server/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ VS Code in the browser ([code-server](https://github.com/coder/code-server))
4545
| version | The version of code-server to install. If empty, installs the latest version. | string | - |
4646
| welcomeText | Text to show on login page. | string | - |
4747
| workspace | Path to the workspace or folder to open on startup. Can be a directory or a .code-workspace file. | string | - |
48+
| appOpenIn | The way to open the app in Coder. Defaults to 'slim-window'. | string | slim-window |
49+
| appShare | The group to use for the app in Coder. Defaults to 'owner'. | string | owner |
50+
| appGroup | The group to use for the app in Coder. Defaults to 'Web Editors'. | string | Web Editors |
4851

4952

5053

src/code-server/devcontainer-feature.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,36 @@
154154
"type": "string",
155155
"default": "",
156156
"description": "Path to the workspace or folder to open on startup. Can be a directory or a .code-workspace file."
157+
},
158+
"appOpenIn": {
159+
"type": "string",
160+
"default": "slim-window",
161+
"description": "The way to open the app in Coder. Defaults to 'slim-window'."
162+
},
163+
"appShare": {
164+
"type": "string",
165+
"default": "owner",
166+
"description": "The group to use for the app in Coder. Defaults to 'owner'."
167+
},
168+
"appGroup": {
169+
"type": "string",
170+
"default": "Web Editors",
171+
"description": "The group to use for the app in Coder. Defaults to 'Web Editors'."
172+
}
173+
},
174+
"customizations": {
175+
"coder": {
176+
"apps": [
177+
{
178+
"slug": "code-server",
179+
"displayName": "code-server",
180+
"url": "http://${localEnv:FEATURE_CODE_SERVER_OPTION_HOST:127.0.0.1}:${localEnv:FEATURE_CODE_SERVER_OPTION_PORT:8080}/",
181+
"openIn": "${localEnv:FEATURE_CODE_SERVER_OPTION_APPOPENIN:slim-window}",
182+
"share": "${localEnv:FEATURE_CODE_SERVER_OPTION_APPSHARE:owner}",
183+
"icon": "/icon/code.svg",
184+
"group": "${localEnv:FEATURE_CODE_SERVER_OPTION_APPGROUP:Web Editors}"
185+
}
186+
]
157187
}
158188
},
159189
"entrypoint": "/usr/local/bin/code-server-entrypoint",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy