From ba51084fd9dc8b6257204b8a8e0efa249323c7ad Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Tue, 20 May 2025 01:40:13 +0200 Subject: [PATCH] Bugfix in LS.request_containing_symbol - column condition was incorrect (too strict) --- src/multilspy/language_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/multilspy/language_server.py b/src/multilspy/language_server.py index b556b943..f46800ad 100644 --- a/src/multilspy/language_server.py +++ b/src/multilspy/language_server.py @@ -1457,11 +1457,11 @@ class LanguageServer: column_condition = True if strict: line_condition = end["line"] >= line > start["line"] - if column is not None: + if column is not None and line == start["line"]: column_condition = column > start["character"] else: line_condition = end["line"] >= line >= start["line"] - if column is not None: + if column is not None and line == start["line"]: column_condition = column >= start["character"] return line_condition and column_condition