Skip to content

Commit 0c27083

Browse files
committed
refactor: remove --home flag/feature
We are removing this because it was removed upstream in PR~115599.
1 parent ae02023 commit 0c27083

File tree

5 files changed

+31
-51
lines changed

5 files changed

+31
-51
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- uses: microsoft/playwright-github-action@v1
4141
- name: Install dependencies and run tests
4242
run: |
43-
./release-packages/code-server*-linux-amd64/bin/code-server --home $CODE_SERVER_ADDRESS/healthz &
43+
./release-packages/code-server*-linux-amd64/bin/code-server &
4444
yarn --frozen-lockfile
4545
yarn test
4646
- name: Upload test artifacts

ci/dev/test.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ main() {
1616
echo " \$PASSWORD"
1717
echo " \$CODE_SERVER_ADDRESS"
1818
echo -e "\n"
19-
echo "Please make sure you have code-server running locally with the flag:"
20-
echo " --home \$CODE_SERVER_ADDRESS/healthz "
21-
echo -e "\n"
2219
exit 1
2320
fi
2421
CS_DISABLE_PLUGINS=true ./test/node_modules/.bin/jest "$@"

docs/FAQ.md

Lines changed: 30 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,36 @@
22
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
33
# FAQ
44

5-
- [Questions?](#questions)
6-
- [iPad Status?](#ipad-status)
7-
- [Community Projects (awesome-code-server)](#community-projects-awesome-code-server)
8-
- [How can I reuse my VS Code configuration?](#how-can-i-reuse-my-vs-code-configuration)
9-
- [Differences compared to VS Code?](#differences-compared-to-vs-code)
10-
- [How can I request a missing extension?](#how-can-i-request-a-missing-extension)
11-
- [How do I configure the marketplace URL?](#how-do-i-configure-the-marketplace-url)
12-
- [Where are extensions stored?](#where-are-extensions-stored)
13-
- [How is this different from VS Code Codespaces?](#how-is-this-different-from-vs-code-codespaces)
14-
- [How should I expose code-server to the internet?](#how-should-i-expose-code-server-to-the-internet)
15-
- [Can I store my password hashed?](#can-i-store-my-password-hashed)
16-
- [How do I securely access web services?](#how-do-i-securely-access-web-services)
17-
- [Sub-paths](#sub-paths)
18-
- [Sub-domains](#sub-domains)
19-
- [Why does the code-server proxy strip `/proxy/<port>` from the request path?](#why-does-the-code-server-proxy-strip-proxyport-from-the-request-path)
20-
- [Proxying to Create React App](#proxying-to-create-react-app)
21-
- [Multi-tenancy](#multi-tenancy)
22-
- [Docker in code-server container?](#docker-in-code-server-container)
23-
- [How can I disable telemetry?](#how-can-i-disable-telemetry)
24-
- [How does code-server decide what workspace or folder to open?](#how-does-code-server-decide-what-workspace-or-folder-to-open)
25-
- [How do I debug issues with code-server?](#how-do-i-debug-issues-with-code-server)
26-
- [Heartbeat File](#heartbeat-file)
27-
- [Healthz endpoint](#healthz-endpoint)
28-
- [How does the config file work?](#how-does-the-config-file-work)
29-
- [How do I customize the "Go Home" button?](#how-do-i-customize-the-go-home-button)
30-
- [Isn't an install script piped into sh insecure?](#isnt-an-install-script-piped-into-sh-insecure)
31-
- [How do I make my keyboard shortcuts work?](#how-do-i-make-my-keyboard-shortcuts-work)
32-
- [Differences compared to Theia?](#differences-compared-to-theia)
33-
- [`$HTTP_PROXY`, `$HTTPS_PROXY`, `$NO_PROXY`](#http_proxy-https_proxy-no_proxy)
34-
- [Enterprise](#enterprise)
5+
- [FAQ](#faq)
6+
- [Questions?](#questions)
7+
- [iPad Status?](#ipad-status)
8+
- [Community Projects (awesome-code-server)](#community-projects-awesome-code-server)
9+
- [How can I reuse my VS Code configuration?](#how-can-i-reuse-my-vs-code-configuration)
10+
- [Differences compared to VS Code?](#differences-compared-to-vs-code)
11+
- [How can I request a missing extension?](#how-can-i-request-a-missing-extension)
12+
- [How do I configure the marketplace URL?](#how-do-i-configure-the-marketplace-url)
13+
- [Where are extensions stored?](#where-are-extensions-stored)
14+
- [How is this different from VS Code Codespaces?](#how-is-this-different-from-vs-code-codespaces)
15+
- [How should I expose code-server to the internet?](#how-should-i-expose-code-server-to-the-internet)
16+
- [Can I store my password hashed?](#can-i-store-my-password-hashed)
17+
- [How do I securely access web services?](#how-do-i-securely-access-web-services)
18+
- [Sub-paths](#sub-paths)
19+
- [Sub-domains](#sub-domains)
20+
- [Why does the code-server proxy strip `/proxy/<port>` from the request path?](#why-does-the-code-server-proxy-strip-proxyport-from-the-request-path)
21+
- [Proxying to Create React App](#proxying-to-create-react-app)
22+
- [Multi-tenancy](#multi-tenancy)
23+
- [Docker in code-server container?](#docker-in-code-server-container)
24+
- [How can I disable telemetry?](#how-can-i-disable-telemetry)
25+
- [How does code-server decide what workspace or folder to open?](#how-does-code-server-decide-what-workspace-or-folder-to-open)
26+
- [How do I debug issues with code-server?](#how-do-i-debug-issues-with-code-server)
27+
- [Heartbeat File](#heartbeat-file)
28+
- [Healthz endpoint](#healthz-endpoint)
29+
- [How does the config file work?](#how-does-the-config-file-work)
30+
- [Isn't an install script piped into sh insecure?](#isnt-an-install-script-piped-into-sh-insecure)
31+
- [How do I make my keyboard shortcuts work?](#how-do-i-make-my-keyboard-shortcuts-work)
32+
- [Differences compared to Theia?](#differences-compared-to-theia)
33+
- [`$HTTP_PROXY`, `$HTTPS_PROXY`, `$NO_PROXY`](#http_proxy-https_proxy-no_proxy)
34+
- [Enterprise](#enterprise)
3535

3636
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
3737

@@ -354,16 +354,6 @@ The `--config` flag or `$CODE_SERVER_CONFIG` can be used to change the config fi
354354

355355
The default location also respects `$XDG_CONFIG_HOME`.
356356

357-
## How do I customize the "Go Home" button?
358-
359-
You can pass a URL to the `--home` flag like this:
360-
361-
```
362-
code-server --home=https://my-website.com
363-
```
364-
365-
Or you can define it in the config file with `home`.
366-
367357
## Isn't an install script piped into sh insecure?
368358

369359
Please give

src/node/cli.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export interface Args extends VsArgs {
5656
"new-window"?: boolean
5757

5858
link?: OptionalString
59-
home?: string
6059
}
6160

6261
interface Option<T> {
@@ -201,10 +200,6 @@ const options: Options<Required<Args>> = {
201200
`,
202201
beta: true,
203202
},
204-
home: {
205-
type: "string",
206-
description: "Set a custom link for the 'Go Home' button in the Application Menu",
207-
},
208203
}
209204

210205
export const optionDescriptions = (): string[] => {

test/cli.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ describe("parser", () => {
5555
"--log",
5656
"error",
5757
"--help",
58-
"--home=http://localhost:8080/",
5958
"--open",
6059
"--socket=mumble",
6160
"3",
@@ -86,7 +85,6 @@ describe("parser", () => {
8685
"extra-builtin-extensions-dir": [path.resolve("bazzle")],
8786
"extra-extensions-dir": [path.resolve("nozzle")],
8887
help: true,
89-
home: "http://localhost:8080/",
9088
host: "0.0.0.0",
9189
json: true,
9290
log: "error",

0 commit comments

Comments
 (0)