langserver

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 31 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"
	CommandCancelQuery       = "bqls.cancelQuery"
	CommandListDatasets      = "bqls.listDatasets"
	CommandListTables        = "bqls.listTables"
	CommandListJobHistories  = "bqls.listJobHistories"
	CommandSaveResult        = "bqls.saveResult"
	CommandSearchTables      = "bqls.searchTables"
	CommandListProjects      = "bqls.listProjects"
	CommandReloadCredentials = "bqls.reloadCredentials"
)

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, version string) *Handler

func (*Handler) Close

func (h *Handler) Close() error

func (*Handler) ExitNotify added in v0.8.0

func (h *Handler) ExitNotify() <-chan int

ExitNotify delivers the process exit code once the client sends the exit notification: 0 if shutdown was received first, otherwise 1.

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"`
	// SupportsAuthenticationRequiredNotification declares that the client
	// handles the bqls/authenticationRequired notification, e.g. by offering
	// to log in. Other clients get the guidance via window/showMessage.
	SupportsAuthenticationRequiredNotification bool        `json:"supports_authentication_required_notification"`
	Lint                                       lint.Config `json:"lint"`
}

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.
function/internal/docparse
Package docparse extracts built-in function references from the GoogleSQL Markdown documentation (https://github.com/google/googlesql/tree/master/docs).
Package docparse extracts built-in function references from the GoogleSQL Markdown documentation (https://github.com/google/googlesql/tree/master/docs).
lint
Package lint provides a small analysis framework, modeled on golang.org/x/tools/go/analysis, for reporting style and correctness warnings on SQL that already analyzes without errors.
Package lint provides a small analysis framework, modeled on golang.org/x/tools/go/analysis, for reporting style and correctness warnings on SQL that already analyzes without errors.
lsp
Package lintcli implements the `bqls lint` command, which reports the same diagnostics as the language server for SQL files on disk.
Package lintcli implements the `bqls lint` command, which reports the same diagnostics as the language server for SQL files on disk.

Jump to

Keyboard shortcuts

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