apple / sourcekit-lsp

Language Server Protocol implementation for Swift and C-based languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`textDocument/definition` returns duplicate results when called on constructors

benjiwolff opened this issue · comments

Similar to #1047, sourcekit-lsp returns duplicate results for textDocument/definition when called on a constructor. This happens for both value and reference types. The same does not happen when called on the type itself e. g. in a variable declaration.

image

Tracked in Apple’s issue tracker as rdar://123036565