Closed nat-418 closed 8 months ago
Seems like it's correct with pyright in a single file, the references number displayed is returned by LSP, I believe the issue is with LSP itself. You can verify this by checking with 'textDocument/references' query.
In Python, the number of References always includes the definition of, e.g., the method, even when
include_declaration = false
in config . I am not sure if this is intended or not, but I would prefer the number of usages .