Documentation
¶
Index ¶
Constants ¶
View Source
const ( // The VS Code CLI ("code" binary) is a small static musl build that runs // "code serve-web". The %s is the build channel (stable | insider). DownloadAmd64Template = "https://code.visualstudio.com/sha/download?build=%s&os=cli-alpine-x64" DownloadArm64Template = "https://code.visualstudio.com/sha/download?build=%s&os=cli-alpine-arm64" )
View Source
const ( ForwardPortsOption = "FORWARD_PORTS" OpenOption = "OPEN" BindAddressOption = "BIND_ADDRESS" VersionOption = "VERSION" DownloadAmd64Option = "DOWNLOAD_AMD64" DownloadArm64Option = "DOWNLOAD_ARM64" )
View Source
const DefaultVSCodePort = 10800
Variables ¶
View Source
var Options = ide.Options{ ForwardPortsOption: { Name: ForwardPortsOption, Description: "If DevPod should automatically do port-forwarding", Default: config.BoolTrue, Enum: []string{config.BoolTrue, config.BoolFalse}, }, BindAddressOption: { Name: BindAddressOption, Description: "The address to bind VS Code Web to locally, e.g. 0.0.0.0:12345", Default: "", }, VersionOption: { Name: VersionOption, Description: "The VS Code CLI build channel to download (stable or insider)", Default: "stable", Enum: []string{"stable", "insider"}, }, OpenOption: { Name: OpenOption, Description: "If DevPod should automatically open the browser", Default: config.BoolTrue, Enum: []string{config.BoolTrue, config.BoolFalse}, }, DownloadArm64Option: { Name: DownloadArm64Option, Description: "The download url for the arm64 VS Code CLI binary", }, DownloadAmd64Option: { Name: DownloadAmd64Option, Description: "The download url for the amd64 VS Code CLI binary", }, }
Functions ¶
This section is empty.
Types ¶
type VSCodeWebServer ¶
type VSCodeWebServer struct {
// contains filtered or unexported fields
}
func NewVSCodeWebServer ¶
func NewVSCodeWebServer( extensions []string, settings string, userName string, host, port string, values map[string]config.OptionValue, log log.Logger, ) *VSCodeWebServer
func (*VSCodeWebServer) Install ¶
func (o *VSCodeWebServer) Install() error
func (*VSCodeWebServer) InstallExtensions ¶
func (o *VSCodeWebServer) InstallExtensions() error
func (*VSCodeWebServer) Start ¶
func (o *VSCodeWebServer) Start() error
Click to show internal directories.
Click to hide internal directories.