langserver

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 25 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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

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"`
	// SupportsAsyncVirtualTextDocument declares that the client understands
	// the bqls/publishVirtualTextDocument notification and can render a
	// pending state. Clients that omit this (zero value: false) keep
	// getting the fully-synchronous bqls/virtualTextDocument response.
	SupportsAsyncVirtualTextDocument bool `json:"supports_async_virtual_text_document"`
}

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