From a2b5f1ea93742951f149a1d3b951da4a64797e99 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Thu, 22 Aug 2024 19:40:42 +0200 Subject: [PATCH] chore: Remove print --- doc-values/value-array.go | 1 - doc-values/value-or.go | 2 -- handlers/fstab/parser.go | 1 - 3 files changed, 4 deletions(-) diff --git a/doc-values/value-array.go b/doc-values/value-array.go index 23f820e..0f200d0 100644 --- a/doc-values/value-array.go +++ b/doc-values/value-array.go @@ -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) } diff --git a/doc-values/value-or.go b/doc-values/value-or.go index d8494f9..8f9e681 100644 --- a/doc-values/value-or.go +++ b/doc-values/value-or.go @@ -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, diff --git a/handlers/fstab/parser.go b/handlers/fstab/parser.go index 3d7b0e4..782f346 100644 --- a/handlers/fstab/parser.go +++ b/handlers/fstab/parser.go @@ -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 }