mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
chore: Remove print
This commit is contained in:
parent
c1dfcaf480
commit
a2b5f1ea93
@ -160,7 +160,6 @@ func (v ArrayValue) getCurrentValue(line string, cursor uint32) (string, uint32)
|
||||
|
||||
func (v ArrayValue) FetchCompletions(line string, cursor uint32) []protocol.CompletionItem {
|
||||
value, cursor := v.getCurrentValue(line, cursor)
|
||||
println(fmt.Sprintf("Value: %s, Cursor: %d", value, cursor))
|
||||
|
||||
return v.SubValue.FetchCompletions(value, cursor)
|
||||
}
|
||||
|
@ -2,7 +2,6 @@ package docvalues
|
||||
|
||||
import (
|
||||
"config-lsp/utils"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
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
|
||||
keyEnumValue := v.Values[0].(KeyEnumAssignmentValue)
|
||||
|
||||
println(fmt.Sprintf("cursor: %d; line=%s", cursor, line))
|
||||
_, found := utils.FindPreviousCharacter(
|
||||
line,
|
||||
keyEnumValue.Separator,
|
||||
|
@ -183,7 +183,6 @@ func (e FstabLine) GetFieldAtPosition(cursor uint32) FstabField {
|
||||
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) {
|
||||
return FstabFieldFreq
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user