This repository was archived by the owner on Feb 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsettings.ts
More file actions
49 lines (48 loc) · 1.81 KB
/
settings.ts
File metadata and controls
49 lines (48 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export interface FullSettings {
/**
* The address to the Go language server listening for WebSocket connections.
*/
'go.serverUrl': string
/**
* The key in settings where this extension looks to find the access token
* for the current user.
*/
'go.accessToken': string
/**
* Whether or not to return external references (from other repositories)
* along with local references.
*/
'go.showExternalReferences': boolean
/**
* The maximum number of repositories to look in when searching for external
* references for a symbol (defaults to 50).
*/
'go.maxExternalReferenceRepos': number
/**
* When set, will cause this extension to use to use gddo's (Go Doc Dot Org)
* API (https://github.com/golang/gddo) to find packages that import a given
* package (used in finding external references). For example:
* `https://godoc.org`.
*/
'go.gddoURL': string
/**
* Address of a cors-anywhere service. This will cause the extension to send
* GDDO requests to this service instead of directly to api.godoc.org. For
* example:
*
* https://cors-anywhere.sourcegraph.com/https://api.godoc.org/importers/github.com/sourcegraph/go-lsp
*
* This would not be necessary if godoc.org set CORS headers.
*/
'go.corsAnywhereURL': string
/**
* The URL of the Sourcegraph instance from the perspective of the Go
* language server. This is useful for development when Sourcegraph is
* running on localhost and the Go language server is running in a Docker
* container. When developing on macOS, set this to
* 'http://host.docker.internal:3080'. See
* https://stackoverflow.com/a/43541681/2061958
*/
'go.sourcegraphUrl': string
}
export type Settings = Partial<FullSettings>