Documentation ¶
Index ¶
- Variables
- func PrepareWorkspace(agentConfig *Config, envName string, repositories []*proto.EnvRepository) error
- func SaveConfigAsFile(configFilePath string, config *Config) error
- type Config
- type ConfigLongRunningProcessCmd
- type ConfigLongRunningProcessWD
- type ConfigLongRunningProcesses
- type ConfigServedPort
- type ConfigServedPorts
- type VSCodeWorkspaceConfig
- type VSCodeWorkspaceConfigFolder
- type WorkspaceConfig
- type WorkspaceConfigRepository
- type WorkspaceConfigRuntimes
- type WorkspaceConfigVSCode
Constants ¶
This section is empty.
Variables ¶
View Source
var RuntimeVSCodeExtensions = map[string][]string{
"go": {"golang.go"},
"ruby": {"rebornix.Ruby"},
"rust": {"rust-lang.rust-analyzer"},
"python": {"ms-python.python"},
"java": {"vscjava.vscode-java-pack"},
"clang": {"ms-vscode.cpptools-extension-pack"},
"docker": {"ms-azuretools.vscode-docker"},
}
Functions ¶
func PrepareWorkspace ¶
func PrepareWorkspace( agentConfig *Config, envName string, repositories []*proto.EnvRepository, ) error
func SaveConfigAsFile ¶
Types ¶
type Config ¶
type Config struct { Workspace *WorkspaceConfig `json:"workspace"` ServedPorts ConfigServedPorts `json:"served_ports"` LongRunningProcesses ConfigLongRunningProcesses `json:"long_running_processes"` }
func LoadConfig ¶
func LoadConfigIfExists ¶
type ConfigLongRunningProcessCmd ¶
type ConfigLongRunningProcessCmd string
type ConfigLongRunningProcessWD ¶
type ConfigLongRunningProcessWD string
type ConfigLongRunningProcesses ¶
type ConfigLongRunningProcesses map[ConfigLongRunningProcessWD]ConfigLongRunningProcessCmd
type ConfigServedPort ¶
type ConfigServedPort string
type ConfigServedPorts ¶
type ConfigServedPorts map[ConfigServedPort]bool
type VSCodeWorkspaceConfig ¶
type VSCodeWorkspaceConfig struct { Folders []VSCodeWorkspaceConfigFolder `json:"folders"` Settings map[string]interface{} `json:"settings"` }
VSCodeWorkspaceConfig matches .code-workspace schema. See: https://code.visualstudio.com/docs/editor/multi-root-workspaces#_workspace-file-schema
type VSCodeWorkspaceConfigFolder ¶
type VSCodeWorkspaceConfigFolder struct {
Path string `json:"path"`
}
type WorkspaceConfig ¶
type WorkspaceConfig struct { Repositories []WorkspaceConfigRepository `json:"repositories"` Runtimes WorkspaceConfigRuntimes `json:"runtimes"` VSCode WorkspaceConfigVSCode `json:"vscode"` RootDirPath string `json:"root_dir_path"` }
func (*WorkspaceConfig) SetRuntimes ¶
func (wc *WorkspaceConfig) SetRuntimes(runtimes WorkspaceConfigRuntimes)
type WorkspaceConfigRuntimes ¶
type WorkspaceConfigVSCode ¶
type WorkspaceConfigVSCode struct {
Extensions []string `json:"extensions"`
}
Click to show internal directories.
Click to hide internal directories.