Not clear which settings are required to deploy Go code intel
View options
- Truncate descriptions
Created by: felixfbecker
The readme for go-codeintel has this under the "Settings" section:
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
}
These properties are all required, which tells me that I need to set them all, but that doesn't seem to be the case. For example, go.accessToken
is created automatically.
Arent the godoc.org settings purely for sourcegraph.com and basically never expected to be set on private instances? If not, do I need to deploy my own cors anywhere proxy, or does it default to our public one?

