mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
chore: Remove println
This commit is contained in:
parent
683be36a03
commit
df9f164a26
@ -176,7 +176,6 @@ func (v ArrayValue) getCurrentValue(line string, cursor uint32) (string, uint32)
|
|||||||
func (v ArrayValue) DeprecatedFetchCompletions(line string, cursor uint32) []protocol.CompletionItem {
|
func (v ArrayValue) DeprecatedFetchCompletions(line string, cursor uint32) []protocol.CompletionItem {
|
||||||
value, cursor := v.getCurrentValue(line, cursor)
|
value, cursor := v.getCurrentValue(line, cursor)
|
||||||
|
|
||||||
println("after array", value, cursor)
|
|
||||||
return v.SubValue.DeprecatedFetchCompletions(value, cursor)
|
return v.SubValue.DeprecatedFetchCompletions(value, cursor)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +96,6 @@ func GetAliasValueHoverInfo(
|
|||||||
func GetAliasValueTypeInfo(
|
func GetAliasValueTypeInfo(
|
||||||
value ast.AliasValueInterface,
|
value ast.AliasValueInterface,
|
||||||
) []string {
|
) []string {
|
||||||
println(fmt.Sprintf("value: %v, value type: %T", value, value))
|
|
||||||
switch value.(type) {
|
switch value.(type) {
|
||||||
case ast.AliasValueUser:
|
case ast.AliasValueUser:
|
||||||
return []string{
|
return []string{
|
||||||
|
@ -97,8 +97,6 @@ func (args codeActionAddToUnknownArgs) RunCommand(d *sshconfig.SSHDocument) (*pr
|
|||||||
}
|
}
|
||||||
|
|
||||||
rawOptionName := option.Key.Value.Raw
|
rawOptionName := option.Key.Value.Raw
|
||||||
println("rawOption:")
|
|
||||||
println(rawOptionName)
|
|
||||||
optionName := addToUnknownOptionTemplate.Format(formatting.DefaultFormattingOptions, rawOptionName)
|
optionName := addToUnknownOptionTemplate.Format(formatting.DefaultFormattingOptions, rawOptionName)
|
||||||
|
|
||||||
// We got everything, let's build the edit!
|
// We got everything, let's build the edit!
|
||||||
|
@ -7,7 +7,6 @@ import (
|
|||||||
"config-lsp/handlers/sshd_config/ast"
|
"config-lsp/handlers/sshd_config/ast"
|
||||||
"config-lsp/handlers/sshd_config/fields"
|
"config-lsp/handlers/sshd_config/fields"
|
||||||
"config-lsp/utils"
|
"config-lsp/utils"
|
||||||
"fmt"
|
|
||||||
|
|
||||||
protocol "github.com/tliron/glsp/protocol_3_16"
|
protocol "github.com/tliron/glsp/protocol_3_16"
|
||||||
)
|
)
|
||||||
@ -17,8 +16,6 @@ func GetRootCompletions(
|
|||||||
parentMatchBlock *ast.SSHDMatchBlock,
|
parentMatchBlock *ast.SSHDMatchBlock,
|
||||||
suggestValue bool,
|
suggestValue bool,
|
||||||
) ([]protocol.CompletionItem, error) {
|
) ([]protocol.CompletionItem, error) {
|
||||||
println("getting root completions and the parnet Match block eta:")
|
|
||||||
println(fmt.Sprintf("%v", parentMatchBlock))
|
|
||||||
kind := protocol.CompletionItemKindField
|
kind := protocol.CompletionItemKindField
|
||||||
|
|
||||||
availableOptions := make(map[string]docvalues.DocumentationValue, 0)
|
availableOptions := make(map[string]docvalues.DocumentationValue, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user