Documentation
¶
Index ¶
- Constants
- func AbsoluteFolder(documentURL *url.URL) (string, error)
- func Concatenate(folder, file string, wslDollarSign bool) (uri string, absoluteFilePath string)
- func CreateAnyPointer(a any) *any
- func CreateBoolPointer(b bool) *bool
- func CreateCompletionItemKindPointer(k protocol.CompletionItemKind) *protocol.CompletionItemKind
- func CreateDefinitionResult(definitionLinkSupport bool, targetRange protocol.Range, ...) any
- func CreateDiagnosticSeverityPointer(ds protocol.DiagnosticSeverity) *protocol.DiagnosticSeverity
- func CreateDocumentHighlightKindPointer(k protocol.DocumentHighlightKind) *protocol.DocumentHighlightKind
- func CreateInsertTextFormatPointer(f protocol.InsertTextFormat) *protocol.InsertTextFormat
- func CreateInsertTextModePointer(m protocol.InsertTextMode) *protocol.InsertTextMode
- func CreateInt32Pointer(i int32) *int32
- func CreateStringPointer(s string) *string
- func FileStructureCompletionItems(folder string, hideFiles bool) []protocol.CompletionItem
- func GitRepository(remoteUrl string) string
- func HubRepositoryImage(imageValue string) (repository, image, tag string)
- func StripLeadingSlash(folder string) string
- func WorkspaceFolder(documentURI protocol.DocumentUri, workspaceFolders []string) (folder string, absolutePath string, relativePath string)
- type NamedEdit
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 Concatenate ¶ added in v0.15.0
func CreateAnyPointer ¶ added in v0.17.0
func CreateBoolPointer ¶
func CreateCompletionItemKindPointer ¶
func CreateCompletionItemKindPointer(k protocol.CompletionItemKind) *protocol.CompletionItemKind
func CreateDefinitionResult ¶ added in v0.4.0
func CreateDiagnosticSeverityPointer ¶
func CreateDiagnosticSeverityPointer(ds protocol.DiagnosticSeverity) *protocol.DiagnosticSeverity
func CreateDocumentHighlightKindPointer ¶
func CreateDocumentHighlightKindPointer(k protocol.DocumentHighlightKind) *protocol.DocumentHighlightKind
func CreateInsertTextFormatPointer ¶
func CreateInsertTextFormatPointer(f protocol.InsertTextFormat) *protocol.InsertTextFormat
func CreateInsertTextModePointer ¶ added in v0.4.0
func CreateInsertTextModePointer(m protocol.InsertTextMode) *protocol.InsertTextMode
func CreateInt32Pointer ¶ added in v0.9.0
func CreateStringPointer ¶
func FileStructureCompletionItems ¶ added in v0.17.0
func FileStructureCompletionItems(folder string, hideFiles bool) []protocol.CompletionItem
func GitRepository ¶
func HubRepositoryImage ¶ added in v0.17.0
func StripLeadingSlash ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.