mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 14:16:21 +00:00
Hotfix: off by one in symbol body
This commit is contained in:
1 parent
529e223f5a
commit
0dbb809d25
1 file changed
+1
-1
@@ -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"]
|
||||
|
||||
Reference in new issue
Block a user