mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-19 07:25:27 +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 {
|
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)
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user