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

Function textEdit

internal/compose/completion_test.go:5534–5548  ·  view source on GitHub ↗
(newText string, line, character, prefixLength protocol.UInteger)

Source from the content-addressed store, hash-verified

5532}
5533
5534func textEdit(newText string, line, character, prefixLength protocol.UInteger) protocol.TextEdit {
5535 return protocol.TextEdit{
5536 NewText: newText,
5537 Range: protocol.Range{
5538 Start: protocol.Position{
5539 Line: line,
5540 Character: character - prefixLength,
5541 },
5542 End: protocol.Position{
5543 Line: line,
5544 Character: character,
5545 },
5546 },
5547 }
5548}
5549
5550func createFileStructure(t *testing.T) string {
5551 dir, err := os.MkdirTemp(os.TempDir(), fmt.Sprintf("%v-%v", t.Name(), time.Now().UnixMilli()))

Calls

no outgoing calls

Tested by

no test coverage detected