| 399 | } |
| 400 | |
| 401 | func 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 | |
| 410 | func folderStructureCompletionItems(documentPath document.DocumentPath, path []*ast.MappingValueNode, prefix string) []protocol.CompletionItem { |
| 411 | folder, hideFiles := directoryForNode(documentPath, path, prefix) |