vscode

package
v0.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2026 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenNewWindow = "OPEN_NEW_WINDOW"
)

Variables

View Source
var Options = ide.Options{
	OpenNewWindow: {
		Name:        OpenNewWindow,
		Description: "If true, DevPod will open the project in a new window",
		Default:     "true",
		Enum: []string{
			"false",
			"true",
		},
	},
}

Functions

func InstallAPKRequirements

func InstallAPKRequirements(logger log.Logger)

InstallAPKRequirements installs the requirements using apk.

This is used by Alpine- and Wolfi-based images.

func Open

func Open(ctx context.Context, workspace, folder string, newWindow bool, flavor Flavor, log log.Logger) error

Types

type Flavor

type Flavor string
const (
	FlavorStable      Flavor = "stable"
	FlavorInsiders    Flavor = "insiders"
	FlavorCursor      Flavor = "cursor"
	FlavorPositron    Flavor = "positron"
	FlavorCodium      Flavor = "codium"
	FlavorWindsurf    Flavor = "windsurf"
	FlavorAntigravity Flavor = "antigravity"
)

func (Flavor) DisplayName

func (f Flavor) DisplayName() string

type ServerOptions added in v0.9.2

type ServerOptions struct {
	Extensions []string
	Settings   string
	UserName   string
	Values     map[string]config.OptionValue
	Flavor     Flavor
	Log        log.Logger
}

type VsCodeServer

type VsCodeServer struct {
	// contains filtered or unexported fields
}

func NewVSCodeServer

func NewVSCodeServer(opts ServerOptions) *VsCodeServer

func (*VsCodeServer) Install

func (o *VsCodeServer) Install() error

func (*VsCodeServer) InstallExtensions

func (o *VsCodeServer) InstallExtensions() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL