From 9065e1f5f9546caf35b329f831626a895318f1ce Mon Sep 17 00:00:00 2001 From: jwortmann Date: Fri, 18 Oct 2024 16:00:32 +0200 Subject: [PATCH] Fix not considering given point when choosing best session in Goto commands (#2533) --- plugin/goto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/goto.py b/plugin/goto.py index 104b5873f..bc75bd02b 100644 --- a/plugin/goto.py +++ b/plugin/goto.py @@ -53,8 +53,8 @@ def run( fallback: bool = False, group: int = -1 ) -> None: - session = self.best_session(self.capability) position = get_position(self.view, event, point) + session = self.best_session(self.capability, position) if session and position is not None: params = text_document_position_params(self.view, position) request = Request(self.method, params, self.view, progress=True)