Skip to content

Commit

Permalink
Merge pull request #472 from Jafaral/ulsp-fix
Browse files Browse the repository at this point in the history
ulsp: fix crashes when running with emacs
  • Loading branch information
Don-Ward authored Sep 13, 2024
2 parents 95f41e5 + f4bdb37 commit 7f757d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uni/ulsp/hover.icn
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class HoverHandler(
desired_line := context.line
character := context.charNum

if /desired_line | /character then return

signatureHandler := SignatureHandler()
signatureHandler.setVariables(workspace)

Expand Down
1 change: 1 addition & 0 deletions uni/ulsp/signature.icn
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class SignatureHandler(
context := workspace.getContext(line, character)
desired_line := context.line
\desired_line | return createResults(results_table)
\params["context"] | return createResults(results_table)

# Handle an active signature #
if \params["context"]["activeSignatureHelp"] then {
Expand Down

0 comments on commit 7f757d5

Please sign in to comment.