Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
15 changes: 14 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down