langserver

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandExecuteQuery     = "bqls.executeQuery"
	CommandListDatasets     = "bqls.listDatasets"
	CommandListTables       = "bqls.listTables"
	CommandListJobHistories = "bqls.listJobHistories"
	CommandSaveResult       = "bqls.saveResult"
)

Variables

This section is empty.

Functions

func ComputeEdits

func ComputeEdits(uri lsp.DocumentURI, before, after string) []lsp.TextEdit

ComputeEdits computes diff edits from 2 string inputs

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(isDebug bool) *Handler

func (*Handler) Close

func (h *Handler) Close() error

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request)

type InitializeOption

type InitializeOption struct {
	ProjectID string `json:"project_id"`
	Location  string `json:"location"`
}

type OpKind

type OpKind int

OpKind is used to denote the type of operation a line represents.

const (
	// Delete is the operation kind for a line that is present in the input
	// but not in the output.
	Delete OpKind = iota
	// Insert is the operation kind for a line that is new in the output.
	Insert
	// Equal is the operation kind for a line that is the same in the input and
	// output, often used to provide context around edited lines.
	Equal
)

Directories

Path Synopsis
internal
bigquery/mock_bigquery
Package mock_bigquery is a generated GoMock package.
Package mock_bigquery is a generated GoMock package.
function
Code generated by gen_builtin_function.go, DO NOT EDIT.
Code generated by gen_builtin_function.go, DO NOT EDIT.
lsp

Jump to

Keyboard shortcuts

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