diff --git a/README.md b/README.md index 3f71197..0e46c68 100644 --- a/README.md +++ b/README.md @@ -61,13 +61,14 @@ http { Add these to your Sourcegraph global settings: ``` - "go.serverUrl": "ws://langserveruser:PASSWORD@host.docker.internal:7080/go", - "go.sourcegraphUrl": "http://host.docker.internal:7080", + "go.serverUrl": "ws://langserveruser:PASSWORD@example.host.docker.internal:7080/go", + "go.sourcegraphUrl": "http://example.host.docker.internal:7080", ``` Fill in the `PASSWORD` that you created above. -- If you're running the quickstart on Linux, change `host.docker.internal` to the output of `ip addr show docker0 | grep -Po 'inet \K[\d.]+'`. +- If you're running the quickstart on macOS, change `example.host.docker.internal` to `host.docker.internal`. +- If you're running the quickstart on Linux, change `example.host.docker.internal` to the output of `ip addr show docker0 | grep -Po 'inet \K[\d.]+'`. - If you're using [Kubernetes](#using-kubernetes) (e.g. [deploy-sourcegraph](https://github.com/sourcegraph/deploy-sourcegraph)): - `go.serverUrl` is the address of the Go language server from the perspective of a user's browser (e.g. https://sourcegraph.example.com/go) - `go.sourcegraphUrl` is the address of the Sourcegraph instance from the perspective of the Go language server (e.g. http://sourcegraph-frontend:30080) diff --git a/package.json b/package.json index 90049f4..0109584 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,20 @@ "go.serverUrl": { "description": "The WebSocket language server to connect to", "type": "string", - "format": "url" + "format": "url", + "not": { + "type": "string", + "pattern": "example\\.host\\.docker\\.internal" + } + }, + "go.sourcegraphUrl": { + "description": "the address of the Sourcegraph instance from the perspective of the Go language server", + "type": "string", + "format": "url", + "not": { + "type": "string", + "pattern": "example\\.host\\.docker\\.internal" + } }, "go.accessToken": { "description": "The access token for the language server to use to fetch files from the Sourcegraph API. The extension will create this token and save it in your settings automatically.",