Skip to content

Commit

Permalink
Fix issues with #159
Browse files Browse the repository at this point in the history
  • Loading branch information
PMunch committed May 24, 2023
1 parent 1e74138 commit 81761e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nimlsp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ proc main(ins: Stream | AsyncFile, outs: Stream | AsyncFile) {.multisync.} =
for suggestion in suggestions:
seenLabels.inc suggestion.collapseByIdentifier
for i in 0..suggestions.high:
let collapsed = suggestions[i].collapseByIdentifier
let
suggestion = suggestions[i]
collapsed = suggestion.collapseByIdentifier
if not addedSuggestions.contains collapsed:
addedSuggestions.incl collapsed
let
Expand Down

0 comments on commit 81761e2

Please sign in to comment.