Documentation
¶
Index ¶
- func ApplyTextEdits(ctx context.Context, client *lsp.Client, filePath string, edits []TextEdit) (string, error)
- func ExecuteCodeLens(ctx context.Context, client *lsp.Client, filePath string, index int) (string, error)
- func ExtractTextFromLocation(loc protocol.Location) (string, error)
- func FindReferences(ctx context.Context, client *lsp.Client, symbolName string, ...) (string, error)
- func GetCodeLens(ctx context.Context, client *lsp.Client, filePath string) (string, error)
- func GetDiagnosticsForFile(ctx context.Context, client *lsp.Client, filePath string, includeContext bool, ...) (string, error)
- func GetFullDefinition(ctx context.Context, client *lsp.Client, startLocation protocol.Location) (string, protocol.Location, error)
- func ReadDefinition(ctx context.Context, client *lsp.Client, symbolName string, ...) (string, error)
- type TextEdit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTextEdits ¶
func ExecuteCodeLens ¶ added in v0.0.2
func ExecuteCodeLens(ctx context.Context, client *lsp.Client, filePath string, index int) (string, error)
ExecuteCodeLens executes a specific code lens command from a file.
func FindReferences ¶
func GetCodeLens ¶ added in v0.0.2
GetCodeLens retrieves code lens hints for a given file location
func GetDiagnosticsForFile ¶
func GetDiagnosticsForFile(ctx context.Context, client *lsp.Client, filePath string, includeContext bool, showLineNumbers bool) (string, error)
GetDiagnostics retrieves diagnostics for a specific file from the language server
Types ¶
type TextEdit ¶
type TextEdit struct { StartLine int `json:"startLine" jsonschema:"required,description=Start line to replace, inclusive"` EndLine int `json:"endLine" jsonschema:"required,description=End line to replace, inclusive"` NewText string `json:"newText" jsonschema:"description=Replacement text. Replace with the new text. Leave blank to remove lines."` }
Click to show internal directories.
Click to hide internal directories.