diff --git a/src/code-server/README.md b/src/code-server/README.md index 8bb6d4c..b9c544b 100644 --- a/src/code-server/README.md +++ b/src/code-server/README.md @@ -45,6 +45,9 @@ VS Code in the browser ([code-server](https://github.com/coder/code-server)) | version | The version of code-server to install. If empty, installs the latest version. | string | - | | welcomeText | Text to show on login page. | string | - | | workspace | Path to the workspace or folder to open on startup. Can be a directory or a .code-workspace file. | string | - | +| appOpenIn | The way to open the app in Coder. Defaults to 'slim-window'. | string | slim-window | +| appShare | The group to use for the app in Coder. Defaults to 'owner'. | string | owner | +| appGroup | The group to use for the app in Coder. Defaults to 'Web Editors'. | string | Web Editors | diff --git a/src/code-server/devcontainer-feature.json b/src/code-server/devcontainer-feature.json index f8b0835..56cfc39 100644 --- a/src/code-server/devcontainer-feature.json +++ b/src/code-server/devcontainer-feature.json @@ -154,6 +154,36 @@ "type": "string", "default": "", "description": "Path to the workspace or folder to open on startup. Can be a directory or a .code-workspace file." + }, + "appOpenIn": { + "type": "string", + "default": "slim-window", + "description": "The way to open the app in Coder. Defaults to 'slim-window'." + }, + "appShare": { + "type": "string", + "default": "owner", + "description": "The group to use for the app in Coder. Defaults to 'owner'." + }, + "appGroup": { + "type": "string", + "default": "Web Editors", + "description": "The group to use for the app in Coder. Defaults to 'Web Editors'." + } + }, + "customizations": { + "coder": { + "apps": [ + { + "slug": "code-server", + "displayName": "code-server", + "url": "http://${localEnv:FEATURE_CODE_SERVER_OPTION_HOST:127.0.0.1}:${localEnv:FEATURE_CODE_SERVER_OPTION_PORT:8080}/", + "openIn": "${localEnv:FEATURE_CODE_SERVER_OPTION_APPOPENIN:slim-window}", + "share": "${localEnv:FEATURE_CODE_SERVER_OPTION_APPSHARE:owner}", + "icon": "/icon/code.svg", + "group": "${localEnv:FEATURE_CODE_SERVER_OPTION_APPGROUP:Web Editors}" + } + ] } }, "entrypoint": "/usr/local/bin/code-server-entrypoint",
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: