Skip to content

Commit

Permalink
Update clangd_lsp_integration.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank authored Jul 10, 2024
1 parent 33825ab commit 5844d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chatdbg/native_util/clangd_lsp_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def native_definition(command):
return "`clangd` was not found. The `definition` function will not be made available."
last_space_index = command.rfind(" ")
if last_space_index == -1:
return "`clangd` was not found. The `definition` function will not be made available."
return "usage: definition <filename>:<lineno> <symbol>"
filename_lineno = command[:last_space_index]
symbol = command[last_space_index + 1 :]
parts = filename_lineno.split(":")
Expand Down

0 comments on commit 5844d68

Please sign in to comment.