types

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const BakeBuildCommandId = "dockerLspClient.bake.build"
View Source
const CodeActionDiagnosticCommandId = "server.textDocument.codeAction.diagnostics"
View Source
const TelemetryCallbackCommandId = "dockerLspServer.telemetry.callback"

Variables

This section is empty.

Functions

func AbsoluteFolder added in v0.3.6

func AbsoluteFolder(documentURL *url.URL) (string, error)

func AbsolutePath

func AbsolutePath(documentURL *url.URL, path string) (string, error)

func CreateBoolPointer

func CreateBoolPointer(b bool) *bool

func CreateDefinitionResult added in v0.4.0

func CreateDefinitionResult(definitionLinkSupport bool, targetRange protocol.Range, originSelectionRange *protocol.Range, linkURI protocol.URI) any

func CreateInsertTextModePointer added in v0.4.0

func CreateInsertTextModePointer(m protocol.InsertTextMode) *protocol.InsertTextMode

func CreateStringPointer

func CreateStringPointer(s string) *string

func GitRepository

func GitRepository(remoteUrl string) string

func StripLeadingSlash

func StripLeadingSlash(folder string) string

func WorkspaceFolder

func WorkspaceFolder(documentURI protocol.DocumentUri, workspaceFolders []string) (folder string, absolutePath string, relativePath string)

WorkspaceFolder takes in a URI and the list of workspace folders (on the host machine and not what is mounted inside the container) and returns the workspace folder that contains the given URI and the path relative to the workspace. If no matches can be found, "" may be returned for the workspace folder and for the relative path.

Types

type NamedEdit

type NamedEdit struct {
	Title string          `json:"title"`
	Edit  string          `json:"edit"`
	Range *protocol.Range `json:"range,omitempty"`
}

Jump to

Keyboard shortcuts

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