Skip to content

Commit

Permalink
Add diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Jul 17, 2024
1 parent e840473 commit 40653e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/requests/highlight.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
function textDocument_documentHighlight_request(params::DocumentHighlightParams, server::LanguageServerInstance, conn)
doc = getdocument(server, params.textDocument.uri)
# This is ONLY here to test whether it also crashes when get_offset crashes
index_at(doc, params.position)
offset = get_offset(doc, params.position)
identifier = get_identifier(getcst(doc), offset)
identifier !== nothing || return nothing
Expand Down

0 comments on commit 40653e9

Please sign in to comment.