ide

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 2 Imported by: 0

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

func GeneratePackageJSON() ([]byte, error)

GeneratePackageJSON generates a package.json for the VSCode extension.

func Hints

func Hints() []string

Hints returns IDE integration hints for the current project.

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.

Jump to

Keyboard shortcuts

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