mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
22 lines
599 B
Go
22 lines
599 B
Go
package lsp
|
|
|
|
import (
|
|
"github.com/tliron/glsp"
|
|
protocol "github.com/tliron/glsp/protocol_3_16"
|
|
)
|
|
|
|
func WorkspaceExecuteCommand(context *glsp.Context, params *protocol.ExecuteCommandParams) (*protocol.ApplyWorkspaceEditParams, error) {
|
|
// _, command, _ := strings.Cut(params.Command, ".")
|
|
//
|
|
// switch command {
|
|
// case string(handlers.CodeActionInlineAliases):
|
|
// args := handlers.CodeActionInlineAliasesArgsFromArguments(params.Arguments[0].(map[string]any))
|
|
//
|
|
// document := hosts.DocumentParserMap[args.URI]
|
|
//
|
|
// return args.RunCommand(*document.Parser)
|
|
// }
|
|
|
|
return nil, nil
|
|
}
|