lspv1

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DiagnosticSeverity_name = map[int32]string{
		0: "DIAGNOSTIC_SEVERITY_UNSPECIFIED",
		1: "DIAGNOSTIC_SEVERITY_ERROR",
		2: "DIAGNOSTIC_SEVERITY_WARNING",
		3: "DIAGNOSTIC_SEVERITY_INFORMATION",
		4: "DIAGNOSTIC_SEVERITY_HINT",
	}
	DiagnosticSeverity_value = map[string]int32{
		"DIAGNOSTIC_SEVERITY_UNSPECIFIED": 0,
		"DIAGNOSTIC_SEVERITY_ERROR":       1,
		"DIAGNOSTIC_SEVERITY_WARNING":     2,
		"DIAGNOSTIC_SEVERITY_INFORMATION": 3,
		"DIAGNOSTIC_SEVERITY_HINT":        4,
	}
)

Enum value maps for DiagnosticSeverity.

View Source
var File_chalk_lsp_v1_lsp_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CodeAction

type CodeAction struct {
	Title       string         `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Diagnostics []*Diagnostic  `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"`
	Edit        *WorkspaceEdit `protobuf:"bytes,3,opt,name=edit,proto3" json:"edit,omitempty"`
	// contains filtered or unexported fields
}

func (*CodeAction) Descriptor deprecated

func (*CodeAction) Descriptor() ([]byte, []int)

Deprecated: Use CodeAction.ProtoReflect.Descriptor instead.

func (*CodeAction) GetDiagnostics

func (x *CodeAction) GetDiagnostics() []*Diagnostic

func (*CodeAction) GetEdit

func (x *CodeAction) GetEdit() *WorkspaceEdit

func (*CodeAction) GetTitle

func (x *CodeAction) GetTitle() string

func (*CodeAction) ProtoMessage

func (*CodeAction) ProtoMessage()

func (*CodeAction) ProtoReflect

func (x *CodeAction) ProtoReflect() protoreflect.Message

func (*CodeAction) Reset

func (x *CodeAction) Reset()

func (*CodeAction) String

func (x *CodeAction) String() string

type CodeDescription

type CodeDescription struct {
	Href string `protobuf:"bytes,1,opt,name=href,proto3" json:"href,omitempty"`
	// contains filtered or unexported fields
}

func (*CodeDescription) Descriptor deprecated

func (*CodeDescription) Descriptor() ([]byte, []int)

Deprecated: Use CodeDescription.ProtoReflect.Descriptor instead.

func (*CodeDescription) GetHref

func (x *CodeDescription) GetHref() string

func (*CodeDescription) ProtoMessage

func (*CodeDescription) ProtoMessage()

func (*CodeDescription) ProtoReflect

func (x *CodeDescription) ProtoReflect() protoreflect.Message

func (*CodeDescription) Reset

func (x *CodeDescription) Reset()

func (*CodeDescription) String

func (x *CodeDescription) String() string

type Diagnostic

type Diagnostic struct {
	Range              *Range                          `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"`
	Message            string                          `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Severity           DiagnosticSeverity              `protobuf:"varint,3,opt,name=severity,proto3,enum=chalk.lsp.v1.DiagnosticSeverity" json:"severity,omitempty"`
	Code               *string                         `protobuf:"bytes,4,opt,name=code,proto3,oneof" json:"code,omitempty"`
	CodeDescription    *CodeDescription                `protobuf:"bytes,5,opt,name=code_description,json=codeDescription,proto3" json:"code_description,omitempty"`
	RelatedInformation []*DiagnosticRelatedInformation `protobuf:"bytes,6,rep,name=related_information,json=relatedInformation,proto3" json:"related_information,omitempty"`
	// contains filtered or unexported fields
}

func (*Diagnostic) Descriptor deprecated

func (*Diagnostic) Descriptor() ([]byte, []int)

Deprecated: Use Diagnostic.ProtoReflect.Descriptor instead.

func (*Diagnostic) GetCode

func (x *Diagnostic) GetCode() string

func (*Diagnostic) GetCodeDescription

func (x *Diagnostic) GetCodeDescription() *CodeDescription

func (*Diagnostic) GetMessage

func (x *Diagnostic) GetMessage() string

func (*Diagnostic) GetRange

func (x *Diagnostic) GetRange() *Range

func (*Diagnostic) GetRelatedInformation

func (x *Diagnostic) GetRelatedInformation() []*DiagnosticRelatedInformation

func (*Diagnostic) GetSeverity

func (x *Diagnostic) GetSeverity() DiagnosticSeverity

func (*Diagnostic) ProtoMessage

func (*Diagnostic) ProtoMessage()

func (*Diagnostic) ProtoReflect

func (x *Diagnostic) ProtoReflect() protoreflect.Message

func (*Diagnostic) Reset

func (x *Diagnostic) Reset()

func (*Diagnostic) String

func (x *Diagnostic) String() string

type DiagnosticRelatedInformation

type DiagnosticRelatedInformation struct {
	Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	Message  string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*DiagnosticRelatedInformation) Descriptor deprecated

func (*DiagnosticRelatedInformation) Descriptor() ([]byte, []int)

Deprecated: Use DiagnosticRelatedInformation.ProtoReflect.Descriptor instead.

func (*DiagnosticRelatedInformation) GetLocation

func (x *DiagnosticRelatedInformation) GetLocation() *Location

func (*DiagnosticRelatedInformation) GetMessage

func (x *DiagnosticRelatedInformation) GetMessage() string

func (*DiagnosticRelatedInformation) ProtoMessage

func (*DiagnosticRelatedInformation) ProtoMessage()

func (*DiagnosticRelatedInformation) ProtoReflect

func (*DiagnosticRelatedInformation) Reset

func (x *DiagnosticRelatedInformation) Reset()

func (*DiagnosticRelatedInformation) String

type DiagnosticSeverity

type DiagnosticSeverity int32
const (
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_UNSPECIFIED DiagnosticSeverity = 0
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_ERROR       DiagnosticSeverity = 1
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_WARNING     DiagnosticSeverity = 2
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_INFORMATION DiagnosticSeverity = 3
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_HINT        DiagnosticSeverity = 4
)

func (DiagnosticSeverity) Descriptor

func (DiagnosticSeverity) Enum

func (DiagnosticSeverity) EnumDescriptor deprecated

func (DiagnosticSeverity) EnumDescriptor() ([]byte, []int)

Deprecated: Use DiagnosticSeverity.Descriptor instead.

func (DiagnosticSeverity) Number

func (DiagnosticSeverity) String

func (x DiagnosticSeverity) String() string

func (DiagnosticSeverity) Type

type LSP

type LSP struct {
	Diagnostics []*PublishDiagnosticsParams `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"`
	Actions     []*CodeAction               `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*LSP) Descriptor deprecated

func (*LSP) Descriptor() ([]byte, []int)

Deprecated: Use LSP.ProtoReflect.Descriptor instead.

func (*LSP) GetActions

func (x *LSP) GetActions() []*CodeAction

func (*LSP) GetDiagnostics

func (x *LSP) GetDiagnostics() []*PublishDiagnosticsParams

func (*LSP) ProtoMessage

func (*LSP) ProtoMessage()

func (*LSP) ProtoReflect

func (x *LSP) ProtoReflect() protoreflect.Message

func (*LSP) Reset

func (x *LSP) Reset()

func (*LSP) String

func (x *LSP) String() string

type Location

type Location struct {
	Uri   string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	Range *Range `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"`
	// contains filtered or unexported fields
}

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetRange

func (x *Location) GetRange() *Range

func (*Location) GetUri

func (x *Location) GetUri() string

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type Position

type Position struct {
	Line      *int32 `protobuf:"varint,1,opt,name=line,proto3,oneof" json:"line,omitempty"`
	Character *int32 `protobuf:"varint,2,opt,name=character,proto3,oneof" json:"character,omitempty"`
	// contains filtered or unexported fields
}

func (*Position) Descriptor deprecated

func (*Position) Descriptor() ([]byte, []int)

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetCharacter

func (x *Position) GetCharacter() int32

func (*Position) GetLine

func (x *Position) GetLine() int32

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

func (x *Position) ProtoReflect() protoreflect.Message

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

type PublishDiagnosticsParams

type PublishDiagnosticsParams struct {
	Uri         string        `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	Diagnostics []*Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishDiagnosticsParams) Descriptor deprecated

func (*PublishDiagnosticsParams) Descriptor() ([]byte, []int)

Deprecated: Use PublishDiagnosticsParams.ProtoReflect.Descriptor instead.

func (*PublishDiagnosticsParams) GetDiagnostics

func (x *PublishDiagnosticsParams) GetDiagnostics() []*Diagnostic

func (*PublishDiagnosticsParams) GetUri

func (x *PublishDiagnosticsParams) GetUri() string

func (*PublishDiagnosticsParams) ProtoMessage

func (*PublishDiagnosticsParams) ProtoMessage()

func (*PublishDiagnosticsParams) ProtoReflect

func (x *PublishDiagnosticsParams) ProtoReflect() protoreflect.Message

func (*PublishDiagnosticsParams) Reset

func (x *PublishDiagnosticsParams) Reset()

func (*PublishDiagnosticsParams) String

func (x *PublishDiagnosticsParams) String() string

type Range

type Range struct {
	Start *Position `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	End   *Position `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*Range) Descriptor deprecated

func (*Range) Descriptor() ([]byte, []int)

Deprecated: Use Range.ProtoReflect.Descriptor instead.

func (*Range) GetEnd

func (x *Range) GetEnd() *Position

func (*Range) GetStart

func (x *Range) GetStart() *Position

func (*Range) ProtoMessage

func (*Range) ProtoMessage()

func (*Range) ProtoReflect

func (x *Range) ProtoReflect() protoreflect.Message

func (*Range) Reset

func (x *Range) Reset()

func (*Range) String

func (x *Range) String() string

type TextDocumentEdit

type TextDocumentEdit struct {
	TextDocument *TextDocumentIdentifier `protobuf:"bytes,1,opt,name=text_document,json=textDocument,proto3" json:"text_document,omitempty"`
	Edits        []*TextEdit             `protobuf:"bytes,2,rep,name=edits,proto3" json:"edits,omitempty"`
	// contains filtered or unexported fields
}

func (*TextDocumentEdit) Descriptor deprecated

func (*TextDocumentEdit) Descriptor() ([]byte, []int)

Deprecated: Use TextDocumentEdit.ProtoReflect.Descriptor instead.

func (*TextDocumentEdit) GetEdits

func (x *TextDocumentEdit) GetEdits() []*TextEdit

func (*TextDocumentEdit) GetTextDocument

func (x *TextDocumentEdit) GetTextDocument() *TextDocumentIdentifier

func (*TextDocumentEdit) ProtoMessage

func (*TextDocumentEdit) ProtoMessage()

func (*TextDocumentEdit) ProtoReflect

func (x *TextDocumentEdit) ProtoReflect() protoreflect.Message

func (*TextDocumentEdit) Reset

func (x *TextDocumentEdit) Reset()

func (*TextDocumentEdit) String

func (x *TextDocumentEdit) String() string

type TextDocumentIdentifier

type TextDocumentIdentifier struct {
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

func (*TextDocumentIdentifier) Descriptor deprecated

func (*TextDocumentIdentifier) Descriptor() ([]byte, []int)

Deprecated: Use TextDocumentIdentifier.ProtoReflect.Descriptor instead.

func (*TextDocumentIdentifier) GetUri

func (x *TextDocumentIdentifier) GetUri() string

func (*TextDocumentIdentifier) ProtoMessage

func (*TextDocumentIdentifier) ProtoMessage()

func (*TextDocumentIdentifier) ProtoReflect

func (x *TextDocumentIdentifier) ProtoReflect() protoreflect.Message

func (*TextDocumentIdentifier) Reset

func (x *TextDocumentIdentifier) Reset()

func (*TextDocumentIdentifier) String

func (x *TextDocumentIdentifier) String() string

type TextEdit

type TextEdit struct {
	Range   *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"`
	NewText string `protobuf:"bytes,2,opt,name=new_text,json=newText,proto3" json:"new_text,omitempty"`
	// contains filtered or unexported fields
}

func (*TextEdit) Descriptor deprecated

func (*TextEdit) Descriptor() ([]byte, []int)

Deprecated: Use TextEdit.ProtoReflect.Descriptor instead.

func (*TextEdit) GetNewText

func (x *TextEdit) GetNewText() string

func (*TextEdit) GetRange

func (x *TextEdit) GetRange() *Range

func (*TextEdit) ProtoMessage

func (*TextEdit) ProtoMessage()

func (*TextEdit) ProtoReflect

func (x *TextEdit) ProtoReflect() protoreflect.Message

func (*TextEdit) Reset

func (x *TextEdit) Reset()

func (*TextEdit) String

func (x *TextEdit) String() string

type WorkspaceEdit

type WorkspaceEdit struct {
	DocumentChanges []*TextDocumentEdit `protobuf:"bytes,1,rep,name=document_changes,json=documentChanges,proto3" json:"document_changes,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkspaceEdit) Descriptor deprecated

func (*WorkspaceEdit) Descriptor() ([]byte, []int)

Deprecated: Use WorkspaceEdit.ProtoReflect.Descriptor instead.

func (*WorkspaceEdit) GetDocumentChanges

func (x *WorkspaceEdit) GetDocumentChanges() []*TextDocumentEdit

func (*WorkspaceEdit) ProtoMessage

func (*WorkspaceEdit) ProtoMessage()

func (*WorkspaceEdit) ProtoReflect

func (x *WorkspaceEdit) ProtoReflect() protoreflect.Message

func (*WorkspaceEdit) Reset

func (x *WorkspaceEdit) Reset()

func (*WorkspaceEdit) String

func (x *WorkspaceEdit) String() string

Jump to

Keyboard shortcuts

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