Hotfix: off by one in symbol body

This commit is contained in:
Michael Panchenko committed 2025-04-18 18:54:27 +02:00
1 parent 529e223f5a
commit 0dbb809d25
1 file changed
+1 -1
+1 -1
View File
@@ -1116,7 +1116,7 @@ class LanguageServer:
assert "relativePath" in symbol["location"]
symbol_file = self.retrieve_full_file_content(symbol["location"]["relativePath"])
symbol_lines = symbol_file.split("\n")
symbol_body = "\n".join(symbol_lines[symbol_start_line:symbol_end_line])
symbol_body = "\n".join(symbol_lines[symbol_start_line:symbol_end_line+1])
# remove leading indentation
symbol_start_column = symbol["location"]["range"]["start"]["character"]