chore: Remove print

This commit is contained in:
Myzel394 2024-08-22 19:40:42 +02:00
parent c1dfcaf480
commit a2b5f1ea93
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185
3 changed files with 0 additions and 4 deletions

View File

@ -160,7 +160,6 @@ func (v ArrayValue) getCurrentValue(line string, cursor uint32) (string, uint32)
func (v ArrayValue) FetchCompletions(line string, cursor uint32) []protocol.CompletionItem { func (v ArrayValue) FetchCompletions(line string, cursor uint32) []protocol.CompletionItem {
value, cursor := v.getCurrentValue(line, cursor) value, cursor := v.getCurrentValue(line, cursor)
println(fmt.Sprintf("Value: %s, Cursor: %d", value, cursor))
return v.SubValue.FetchCompletions(value, cursor) return v.SubValue.FetchCompletions(value, cursor)
} }

View File

@ -2,7 +2,6 @@ package docvalues
import ( import (
"config-lsp/utils" "config-lsp/utils"
"fmt"
"strings" "strings"
protocol "github.com/tliron/glsp/protocol_3_16" protocol "github.com/tliron/glsp/protocol_3_16"
@ -61,7 +60,6 @@ func (v OrValue) FetchCompletions(line string, cursor uint32) []protocol.Complet
// the values of the KeyEnumAssignment // the values of the KeyEnumAssignment
keyEnumValue := v.Values[0].(KeyEnumAssignmentValue) keyEnumValue := v.Values[0].(KeyEnumAssignmentValue)
println(fmt.Sprintf("cursor: %d; line=%s", cursor, line))
_, found := utils.FindPreviousCharacter( _, found := utils.FindPreviousCharacter(
line, line,
keyEnumValue.Separator, keyEnumValue.Separator,

View File

@ -183,7 +183,6 @@ func (e FstabLine) GetFieldAtPosition(cursor uint32) FstabField {
return FstabFieldOptions return FstabFieldOptions
} }
println(fmt.Sprintf("cursor: %v, freq: %v", cursor, e.Fields.Freq))
if e.Fields.Freq == nil || (cursor >= e.Fields.Freq.Start && cursor <= e.Fields.Freq.End) { if e.Fields.Freq == nil || (cursor >= e.Fields.Freq.Start && cursor <= e.Fields.Freq.End) {
return FstabFieldFreq return FstabFieldFreq
} }