Documentation
¶
Index ¶
- Constants
- func AbsoluteFolder(documentURL *url.URL) (string, error)
- func AbsolutePath(documentURL *url.URL, path string) (string, error)
- func CreateBoolPointer(b bool) *bool
- func CreateCompletionItemKindPointer(k protocol.CompletionItemKind) *protocol.CompletionItemKind
- func CreateDiagnosticSeverityPointer(ds protocol.DiagnosticSeverity) *protocol.DiagnosticSeverity
- func CreateDocumentHighlightKindPointer(k protocol.DocumentHighlightKind) *protocol.DocumentHighlightKind
- func CreateInsertTextFormatPointer(f protocol.InsertTextFormat) *protocol.InsertTextFormat
- func CreateStringPointer(s string) *string
- func GitRepository(remoteUrl string) 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 CreateBoolPointer ¶
func CreateCompletionItemKindPointer ¶
func CreateCompletionItemKindPointer(k protocol.CompletionItemKind) *protocol.CompletionItemKind
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 CreateStringPointer ¶
func GitRepository ¶
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.