codeaction

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeAction

type CodeAction struct {
	Title       string
	Kind        string
	DocURI      string
	Edit        *TextEdit
	Command     *Command
	Diagnostics []DiagnosticInfo
}

func GetActions

func GetActions(doc *document.Document, rng document.Range, folder *workspace.Folder) []CodeAction

type Command

type Command struct {
	Title     string
	Command   string
	Arguments []any
}

type DiagnosticInfo

type DiagnosticInfo struct {
	Range    document.Range
	Severity int
	Code     string
	Source   string
	Message  string
}

type TextEdit

type TextEdit struct {
	Range   document.Range
	NewText string
}

Jump to

Keyboard shortcuts

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