1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-27 04:35:25 +00:00

refactor: remove --home flag/feature

We are removing this because it was removed upstream in PR~115599.
This commit is contained in:
Joe Previte 2021-03-16 12:18:33 -07:00
parent ae02023454
commit 0c2708302d
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24
5 changed files with 31 additions and 51 deletions

View File

@ -40,7 +40,7 @@ jobs:
- uses: microsoft/playwright-github-action@v1 - uses: microsoft/playwright-github-action@v1
- name: Install dependencies and run tests - name: Install dependencies and run tests
run: | run: |
./release-packages/code-server*-linux-amd64/bin/code-server --home $CODE_SERVER_ADDRESS/healthz & ./release-packages/code-server*-linux-amd64/bin/code-server &
yarn --frozen-lockfile yarn --frozen-lockfile
yarn test yarn test
- name: Upload test artifacts - name: Upload test artifacts

View File

@ -16,9 +16,6 @@ main() {
echo " \$PASSWORD" echo " \$PASSWORD"
echo " \$CODE_SERVER_ADDRESS" echo " \$CODE_SERVER_ADDRESS"
echo -e "\n" echo -e "\n"
echo "Please make sure you have code-server running locally with the flag:"
echo " --home \$CODE_SERVER_ADDRESS/healthz "
echo -e "\n"
exit 1 exit 1
fi fi
CS_DISABLE_PLUGINS=true ./test/node_modules/.bin/jest "$@" CS_DISABLE_PLUGINS=true ./test/node_modules/.bin/jest "$@"

View File

@ -2,6 +2,7 @@
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
# FAQ # FAQ
- [FAQ](#faq)
- [Questions?](#questions) - [Questions?](#questions)
- [iPad Status?](#ipad-status) - [iPad Status?](#ipad-status)
- [Community Projects (awesome-code-server)](#community-projects-awesome-code-server) - [Community Projects (awesome-code-server)](#community-projects-awesome-code-server)
@ -26,7 +27,6 @@
- [Heartbeat File](#heartbeat-file) - [Heartbeat File](#heartbeat-file)
- [Healthz endpoint](#healthz-endpoint) - [Healthz endpoint](#healthz-endpoint)
- [How does the config file work?](#how-does-the-config-file-work) - [How does the config file work?](#how-does-the-config-file-work)
- [How do I customize the "Go Home" button?](#how-do-i-customize-the-go-home-button)
- [Isn't an install script piped into sh insecure?](#isnt-an-install-script-piped-into-sh-insecure) - [Isn't an install script piped into sh insecure?](#isnt-an-install-script-piped-into-sh-insecure)
- [How do I make my keyboard shortcuts work?](#how-do-i-make-my-keyboard-shortcuts-work) - [How do I make my keyboard shortcuts work?](#how-do-i-make-my-keyboard-shortcuts-work)
- [Differences compared to Theia?](#differences-compared-to-theia) - [Differences compared to Theia?](#differences-compared-to-theia)
@ -354,16 +354,6 @@ The `--config` flag or `$CODE_SERVER_CONFIG` can be used to change the config fi
The default location also respects `$XDG_CONFIG_HOME`. The default location also respects `$XDG_CONFIG_HOME`.
## How do I customize the "Go Home" button?
You can pass a URL to the `--home` flag like this:
```
code-server --home=https://my-website.com
```
Or you can define it in the config file with `home`.
## Isn't an install script piped into sh insecure? ## Isn't an install script piped into sh insecure?
Please give Please give

View File

@ -56,7 +56,6 @@ export interface Args extends VsArgs {
"new-window"?: boolean "new-window"?: boolean
link?: OptionalString link?: OptionalString
home?: string
} }
interface Option<T> { interface Option<T> {
@ -201,10 +200,6 @@ const options: Options<Required<Args>> = {
`, `,
beta: true, beta: true,
}, },
home: {
type: "string",
description: "Set a custom link for the 'Go Home' button in the Application Menu",
},
} }
export const optionDescriptions = (): string[] => { export const optionDescriptions = (): string[] => {

View File

@ -55,7 +55,6 @@ describe("parser", () => {
"--log", "--log",
"error", "error",
"--help", "--help",
"--home=http://localhost:8080/",
"--open", "--open",
"--socket=mumble", "--socket=mumble",
"3", "3",
@ -86,7 +85,6 @@ describe("parser", () => {
"extra-builtin-extensions-dir": [path.resolve("bazzle")], "extra-builtin-extensions-dir": [path.resolve("bazzle")],
"extra-extensions-dir": [path.resolve("nozzle")], "extra-extensions-dir": [path.resolve("nozzle")],
help: true, help: true,
home: "http://localhost:8080/",
host: "0.0.0.0", host: "0.0.0.0",
json: true, json: true,
log: "error", log: "error",