Documentation
¶
Index ¶
- func RegisterLSPTools(tools []interface{ ... }, manager *lsp.LSPManager) []interface{ ... }
- type LSPDiagnosticsTool
- func (t *LSPDiagnosticsTool) Description() string
- func (t *LSPDiagnosticsTool) Execute(ctx context.Context, input json.RawMessage) (string, error)
- func (t *LSPDiagnosticsTool) Name() string
- func (t *LSPDiagnosticsTool) Parameters() map[string]interface{}
- func (t *LSPDiagnosticsTool) RiskLevel() string
- type LSPFindReferencesTool
- func (t *LSPFindReferencesTool) Description() string
- func (t *LSPFindReferencesTool) Execute(ctx context.Context, input json.RawMessage) (string, error)
- func (t *LSPFindReferencesTool) Name() string
- func (t *LSPFindReferencesTool) Parameters() map[string]interface{}
- func (t *LSPFindReferencesTool) RiskLevel() string
- type LSPGotoDefinitionTool
- func (t *LSPGotoDefinitionTool) Description() string
- func (t *LSPGotoDefinitionTool) Execute(ctx context.Context, input json.RawMessage) (string, error)
- func (t *LSPGotoDefinitionTool) Name() string
- func (t *LSPGotoDefinitionTool) Parameters() map[string]interface{}
- func (t *LSPGotoDefinitionTool) RiskLevel() string
- type LSPPrepareRenameTool
- func (t *LSPPrepareRenameTool) Description() string
- func (t *LSPPrepareRenameTool) Execute(ctx context.Context, input json.RawMessage) (string, error)
- func (t *LSPPrepareRenameTool) Name() string
- func (t *LSPPrepareRenameTool) Parameters() map[string]interface{}
- func (t *LSPPrepareRenameTool) RiskLevel() string
- type LSPRenameTool
- type LSPStatusTool
- type LSPSymbolsTool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLSPTools ¶
func RegisterLSPTools(tools []interface{ Name() string }, manager *lsp.LSPManager) []interface{ Name() string }
RegisterLSPTools adds all 7 LSP tools to the provided slice.
Types ¶
type LSPDiagnosticsTool ¶
type LSPDiagnosticsTool struct {
Manager *lsp.LSPManager
}
LSPDiagnosticsTool gets diagnostics for a file.
func (*LSPDiagnosticsTool) Description ¶
func (t *LSPDiagnosticsTool) Description() string
func (*LSPDiagnosticsTool) Execute ¶
func (t *LSPDiagnosticsTool) Execute(ctx context.Context, input json.RawMessage) (string, error)
func (*LSPDiagnosticsTool) Name ¶
func (t *LSPDiagnosticsTool) Name() string
func (*LSPDiagnosticsTool) Parameters ¶
func (t *LSPDiagnosticsTool) Parameters() map[string]interface{}
func (*LSPDiagnosticsTool) RiskLevel ¶
func (t *LSPDiagnosticsTool) RiskLevel() string
type LSPFindReferencesTool ¶
type LSPFindReferencesTool struct {
Manager *lsp.LSPManager
}
LSPFindReferencesTool finds all references to a symbol.
func (*LSPFindReferencesTool) Description ¶
func (t *LSPFindReferencesTool) Description() string
func (*LSPFindReferencesTool) Execute ¶
func (t *LSPFindReferencesTool) Execute(ctx context.Context, input json.RawMessage) (string, error)
func (*LSPFindReferencesTool) Name ¶
func (t *LSPFindReferencesTool) Name() string
func (*LSPFindReferencesTool) Parameters ¶
func (t *LSPFindReferencesTool) Parameters() map[string]interface{}
func (*LSPFindReferencesTool) RiskLevel ¶
func (t *LSPFindReferencesTool) RiskLevel() string
type LSPGotoDefinitionTool ¶
type LSPGotoDefinitionTool struct {
Manager *lsp.LSPManager
}
LSPGotoDefinitionTool navigates to the definition of a symbol.
func (*LSPGotoDefinitionTool) Description ¶
func (t *LSPGotoDefinitionTool) Description() string
func (*LSPGotoDefinitionTool) Execute ¶
func (t *LSPGotoDefinitionTool) Execute(ctx context.Context, input json.RawMessage) (string, error)
func (*LSPGotoDefinitionTool) Name ¶
func (t *LSPGotoDefinitionTool) Name() string
func (*LSPGotoDefinitionTool) Parameters ¶
func (t *LSPGotoDefinitionTool) Parameters() map[string]interface{}
func (*LSPGotoDefinitionTool) RiskLevel ¶
func (t *LSPGotoDefinitionTool) RiskLevel() string
type LSPPrepareRenameTool ¶
type LSPPrepareRenameTool struct {
Manager *lsp.LSPManager
}
LSPPrepareRenameTool checks if a symbol can be renamed.
func (*LSPPrepareRenameTool) Description ¶
func (t *LSPPrepareRenameTool) Description() string
func (*LSPPrepareRenameTool) Execute ¶
func (t *LSPPrepareRenameTool) Execute(ctx context.Context, input json.RawMessage) (string, error)
func (*LSPPrepareRenameTool) Name ¶
func (t *LSPPrepareRenameTool) Name() string
func (*LSPPrepareRenameTool) Parameters ¶
func (t *LSPPrepareRenameTool) Parameters() map[string]interface{}
func (*LSPPrepareRenameTool) RiskLevel ¶
func (t *LSPPrepareRenameTool) RiskLevel() string
type LSPRenameTool ¶
type LSPRenameTool struct {
Manager *lsp.LSPManager
}
LSPRenameTool renames a symbol across the workspace.
func (*LSPRenameTool) Description ¶
func (t *LSPRenameTool) Description() string
func (*LSPRenameTool) Execute ¶
func (t *LSPRenameTool) Execute(ctx context.Context, input json.RawMessage) (string, error)
func (*LSPRenameTool) Name ¶
func (t *LSPRenameTool) Name() string
func (*LSPRenameTool) Parameters ¶
func (t *LSPRenameTool) Parameters() map[string]interface{}
func (*LSPRenameTool) RiskLevel ¶
func (t *LSPRenameTool) RiskLevel() string
type LSPStatusTool ¶
type LSPStatusTool struct {
Manager *lsp.LSPManager
}
LSPStatusTool lists configured language servers and their state.
func (*LSPStatusTool) Description ¶
func (t *LSPStatusTool) Description() string
func (*LSPStatusTool) Execute ¶
func (t *LSPStatusTool) Execute(ctx context.Context, input json.RawMessage) (string, error)
func (*LSPStatusTool) Name ¶
func (t *LSPStatusTool) Name() string
func (*LSPStatusTool) Parameters ¶
func (t *LSPStatusTool) Parameters() map[string]interface{}
func (*LSPStatusTool) RiskLevel ¶
func (t *LSPStatusTool) RiskLevel() string
type LSPSymbolsTool ¶
type LSPSymbolsTool struct {
Manager *lsp.LSPManager
}
LSPSymbolsTool lists all symbols in a document.
func (*LSPSymbolsTool) Description ¶
func (t *LSPSymbolsTool) Description() string
func (*LSPSymbolsTool) Execute ¶
func (t *LSPSymbolsTool) Execute(ctx context.Context, input json.RawMessage) (string, error)
func (*LSPSymbolsTool) Name ¶
func (t *LSPSymbolsTool) Name() string
func (*LSPSymbolsTool) Parameters ¶
func (t *LSPSymbolsTool) Parameters() map[string]interface{}
func (*LSPSymbolsTool) RiskLevel ¶
func (t *LSPSymbolsTool) RiskLevel() string
Click to show internal directories.
Click to hide internal directories.