MCPcopy Create free account
hub / github.com/docker/docker-language-server / modifyTextEdit

Function modifyTextEdit

internal/compose/completion.go:401–408  ·  view source on GitHub ↗
(file *ast.File, manager *document.Manager, documentPath document.DocumentPath, edit protocol.TextEdit, attributeName, spacing string, path []*ast.MappingValueNode)

Source from the content-addressed store, hash-verified

399}
400
401func modifyTextEdit(file *ast.File, manager *document.Manager, documentPath document.DocumentPath, edit protocol.TextEdit, attributeName, spacing string, path []*ast.MappingValueNode) protocol.TextEdit {
402 for _, modified := range textEditModifiers {
403 if modified.isInterested(attributeName, path) {
404 return modified.modify(file, manager, documentPath, edit, attributeName, spacing, path)
405 }
406 }
407 return edit
408}
409
410func folderStructureCompletionItems(documentPath document.DocumentPath, path []*ast.MappingValueNode, prefix string) []protocol.CompletionItem {
411 folder, hideFiles := directoryForNode(documentPath, path, prefix)

Callers 1

createSchemaItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected