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

Commitcf6837e

Browse files
authored
feat: add code-server app customization (#13)
1 parentfb15bd3 commitcf6837e

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)

[8]ページ先頭

©2009-2025 Movatter.jp