Documentation
¶
Overview ¶
Package ide provides IDE integration hints and metadata. This is a stub for future IDE extensions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePackageJSON ¶
GeneratePackageJSON generates a package.json for the VSCode extension.
Types ¶
type Command ¶
type Command struct {
Command string `json:"command"`
Title string `json:"title"`
Category string `json:"category,omitempty"`
}
Command describes a contributed command.
type Configuration ¶
type Configuration struct {
Title string `json:"title"`
Properties map[string]interface{} `json:"properties"`
}
Configuration describes contributed settings.
type Contributes ¶
type Contributes struct {
Commands []Command `json:"commands,omitempty"`
Keybindings []Keybinding `json:"keybindings,omitempty"`
Configuration *Configuration `json:"configuration,omitempty"`
}
Contributes describes extension contributions.
type ExtensionManifest ¶
type ExtensionManifest struct {
Name string `json:"name"`
DisplayName string `json:"displayName"`
Version string `json:"version"`
Publisher string `json:"publisher"`
Description string `json:"description"`
Main string `json:"main"`
Engines map[string]string `json:"engines"`
Categories []string `json:"categories"`
Activation []string `json:"activationEvents"`
Contributes *Contributes `json:"contributes,omitempty"`
}
ExtensionManifest describes a VSCode/Cursor/Trae extension.
func DefaultManifest ¶
func DefaultManifest() *ExtensionManifest
DefaultManifest returns the default Hawk IDE extension manifest.
type Keybinding ¶
type Keybinding struct {
Command string `json:"command"`
Key string `json:"key"`
When string `json:"when,omitempty"`
}
Keybinding describes a keyboard shortcut.
type ServerConfig ¶
type ServerConfig struct {
Command string `json:"command"`
Args []string `json:"args,omitempty"`
Env map[string]string `json:"env,omitempty"`
}
ServerConfig describes a language server configuration.
func SuggestLSPConfig ¶
func SuggestLSPConfig(language string) (*ServerConfig, error)
SuggestLSPConfig suggests LSP server configurations for common languages.
Click to show internal directories.
Click to hide internal directories.