Documentation ¶
Index ¶
- Variables
- type CodeAction
- func (*CodeAction) Descriptor() ([]byte, []int)deprecated
- func (x *CodeAction) GetDiagnostics() []*Diagnostic
- func (x *CodeAction) GetEdit() *WorkspaceEdit
- func (x *CodeAction) GetTitle() string
- func (*CodeAction) ProtoMessage()
- func (x *CodeAction) ProtoReflect() protoreflect.Message
- func (x *CodeAction) Reset()
- func (x *CodeAction) String() string
- type CodeDescription
- type Diagnostic
- func (*Diagnostic) Descriptor() ([]byte, []int)deprecated
- func (x *Diagnostic) GetCode() string
- func (x *Diagnostic) GetCodeDescription() *CodeDescription
- func (x *Diagnostic) GetMessage() string
- func (x *Diagnostic) GetRange() *Range
- func (x *Diagnostic) GetRelatedInformation() []*DiagnosticRelatedInformation
- func (x *Diagnostic) GetSeverity() DiagnosticSeverity
- func (*Diagnostic) ProtoMessage()
- func (x *Diagnostic) ProtoReflect() protoreflect.Message
- func (x *Diagnostic) Reset()
- func (x *Diagnostic) String() string
- type DiagnosticRelatedInformation
- func (*DiagnosticRelatedInformation) Descriptor() ([]byte, []int)deprecated
- func (x *DiagnosticRelatedInformation) GetLocation() *Location
- func (x *DiagnosticRelatedInformation) GetMessage() string
- func (*DiagnosticRelatedInformation) ProtoMessage()
- func (x *DiagnosticRelatedInformation) ProtoReflect() protoreflect.Message
- func (x *DiagnosticRelatedInformation) Reset()
- func (x *DiagnosticRelatedInformation) String() string
- type DiagnosticSeverity
- func (DiagnosticSeverity) Descriptor() protoreflect.EnumDescriptor
- func (x DiagnosticSeverity) Enum() *DiagnosticSeverity
- func (DiagnosticSeverity) EnumDescriptor() ([]byte, []int)deprecated
- func (x DiagnosticSeverity) Number() protoreflect.EnumNumber
- func (x DiagnosticSeverity) String() string
- func (DiagnosticSeverity) Type() protoreflect.EnumType
- type LSP
- type Location
- type Position
- type PublishDiagnosticsParams
- func (*PublishDiagnosticsParams) Descriptor() ([]byte, []int)deprecated
- func (x *PublishDiagnosticsParams) GetDiagnostics() []*Diagnostic
- func (x *PublishDiagnosticsParams) GetUri() string
- func (*PublishDiagnosticsParams) ProtoMessage()
- func (x *PublishDiagnosticsParams) ProtoReflect() protoreflect.Message
- func (x *PublishDiagnosticsParams) Reset()
- func (x *PublishDiagnosticsParams) String() string
- type Range
- type TextDocumentEdit
- func (*TextDocumentEdit) Descriptor() ([]byte, []int)deprecated
- func (x *TextDocumentEdit) GetEdits() []*TextEdit
- func (x *TextDocumentEdit) GetTextDocument() *TextDocumentIdentifier
- func (*TextDocumentEdit) ProtoMessage()
- func (x *TextDocumentEdit) ProtoReflect() protoreflect.Message
- func (x *TextDocumentEdit) Reset()
- func (x *TextDocumentEdit) String() string
- type TextDocumentIdentifier
- func (*TextDocumentIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *TextDocumentIdentifier) GetUri() string
- func (*TextDocumentIdentifier) ProtoMessage()
- func (x *TextDocumentIdentifier) ProtoReflect() protoreflect.Message
- func (x *TextDocumentIdentifier) Reset()
- func (x *TextDocumentIdentifier) String() string
- type TextEdit
- type WorkspaceEdit
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 (x *DiagnosticRelatedInformation) ProtoReflect() protoreflect.Message
func (*DiagnosticRelatedInformation) Reset ¶
func (x *DiagnosticRelatedInformation) Reset()
func (*DiagnosticRelatedInformation) String ¶
func (x *DiagnosticRelatedInformation) String() 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) Descriptor() protoreflect.EnumDescriptor
func (DiagnosticSeverity) Enum ¶
func (x DiagnosticSeverity) Enum() *DiagnosticSeverity
func (DiagnosticSeverity) EnumDescriptor
deprecated
func (DiagnosticSeverity) EnumDescriptor() ([]byte, []int)
Deprecated: Use DiagnosticSeverity.Descriptor instead.
func (DiagnosticSeverity) Number ¶
func (x DiagnosticSeverity) Number() protoreflect.EnumNumber
func (DiagnosticSeverity) String ¶
func (x DiagnosticSeverity) String() string
func (DiagnosticSeverity) Type ¶
func (DiagnosticSeverity) Type() protoreflect.EnumType
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) 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
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) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
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) GetCharacter ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Range) ProtoMessage()
func (*Range) ProtoReflect ¶
func (x *Range) ProtoReflect() protoreflect.Message
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) GetNewText ¶
func (*TextEdit) ProtoMessage ¶
func (*TextEdit) ProtoMessage()
func (*TextEdit) ProtoReflect ¶
func (x *TextEdit) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.