From 8c6c20380e56d6273282056b8a6d815e00065519 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 20 Dec 2023 16:00:56 +0900 Subject: [PATCH] fix specifying numbered connection --- internal/handler/execute_command.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/handler/execute_command.go b/internal/handler/execute_command.go index 3c574ae..5e34bdc 100644 --- a/internal/handler/execute_command.go +++ b/internal/handler/execute_command.go @@ -350,7 +350,8 @@ func (s *Server) switchConnections(ctx context.Context, params lsp.ExecuteComman break } } - } else { + } + if index <= 0 { index, _ = strconv.Atoi(indexStr) }