methods

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildTime string
View Source
var ServerVersion string = "<dev build>"

Defined at build time by ldflags.sh

Functions

This section is empty.

Types

type Methods

type Methods struct {
	Ctx            context.Context
	Conn           jsonrpc2.Conn
	Cache          *utils.Cache
	LsContext      *utils.LsContext
	SchemaLocation string
}

func (*Methods) CodeAction

func (methods *Methods) CodeAction(reply jsonrpc2.Replier, req jsonrpc2.Request) error

func (*Methods) Complete

func (methods *Methods) Complete(reply jsonrpc2.Replier, req jsonrpc2.Request) error

func (*Methods) Definition

func (methods *Methods) Definition(reply jsonrpc2.Replier, req jsonrpc2.Request) error

func (*Methods) Diagnostics

func (methods *Methods) Diagnostics(textDocument protocol.TextDocumentItem) protocol.PublishDiagnosticsParams

func (*Methods) DidChange

func (methods *Methods) DidChange(reply jsonrpc2.Replier, req jsonrpc2.Request) error

func (*Methods) DidClose

func (methods *Methods) DidClose(reply jsonrpc2.Replier, req jsonrpc2.Request) error

func (*Methods) DidOpen

func (methods *Methods) DidOpen(reply jsonrpc2.Replier, req jsonrpc2.Request) error

func (*Methods) DocumentSymbols

func (methods *Methods) DocumentSymbols(reply jsonrpc2.Replier, req jsonrpc2.Request) error

func (*Methods) ExecuteCommand

func (methods *Methods) ExecuteCommand(reply jsonrpc2.Replier, req jsonrpc2.Request) error

func (*Methods) Hover

func (methods *Methods) Hover(reply jsonrpc2.Replier, req jsonrpc2.Request) error

func (*Methods) Initialize

func (methods *Methods) Initialize(reply jsonrpc2.Replier, req jsonrpc2.Request) error

func (*Methods) References

func (methods *Methods) References(reply jsonrpc2.Replier, req jsonrpc2.Request) error

func (*Methods) SemanticTokens

func (methods *Methods) SemanticTokens(reply jsonrpc2.Replier, req jsonrpc2.Request) error

func (*Methods) SendTelemetryEvent

func (methods *Methods) SendTelemetryEvent(event TelemetryEvent)

TelemetryEvent are referenced on the following document: https://circleci.atlassian.net/wiki/spaces/DE/pages/6739722598/VS+Code+extension+Segment+event+tracking If you add an event in the code please edit the document

If you don't know what to put in Action and TriggerType, leave them empty The lsp client may add other properties

func (*Methods) SetResourceClassOfFile

func (methods *Methods) SetResourceClassOfFile(params protocol.DidOpenTextDocumentParams)

type ResourceClassResponse

type ResourceClassResponse struct {
	Items []ResourceClassResponseItem `json:"items"`
}

type ResourceClassResponseItem

type ResourceClassResponseItem struct {
	Id            string `json:"id"`
	ResourceClass string `json:"resource_class"`
	Description   string `json:"description"`
}

type SemanticTokensOptions

type SemanticTokensOptions struct {
	WorkDoneProgress bool                          `json:"workDoneProgress,omitempty"`
	Legend           protocol.SemanticTokensLegend `json:"legend,omitempty"`
	Range            bool                          `json:"range,omitempty"`
	Full             bool                          `json:"full,omitempty"`
}

type TelemetryEvent

type TelemetryEvent struct {
	Object      string                 `json:"object"`
	TriggerType string                 `json:"triggerType"`
	Action      string                 `json:"action"`
	Properties  map[string]interface{} `json:"properties"`
}

Jump to

Keyboard shortcuts

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