You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
ATM clojure-lsp filter out analysis elements that has nil location here, after https://github.com/clj-kondo/clj-kondo/pull/1836/files, clj-kondo started to return non-nil locations for generated code provided by hooks, that's ok for fix findings having locations but make clojure-lsp think that code exists but in fact it's auto generated causing weird behaviors on highlighting, semantic-tokens and others for some custom-hooks, like state-flow
example:
Before:
After:
Describe the solution you'd like
@borkdude suggested: have a new field like derived-location and clojure-lsp ignore those analysis.
Describe alternatives you've considered
Try to fix the hook, but I don't think it's possible
Additional context
@borkdude started a branch generated-location which partially fixes it ATM but there are still missing analysis to be considered:
var-definitions
var-usages (it seems there are some missing yet)
keywords
locals
I think those are the ones interested for hooks, not sure If I missed any other
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
ATM clojure-lsp filter out analysis elements that has nil location here, after https://github.com/clj-kondo/clj-kondo/pull/1836/files, clj-kondo started to return non-nil locations for generated code provided by hooks, that's ok for fix findings having locations but make clojure-lsp think that code exists but in fact it's auto generated causing weird behaviors on highlighting, semantic-tokens and others for some custom-hooks, like state-flow
example:
Before:
After:
Describe the solution you'd like
@borkdude suggested: have a new field like
derived-location
and clojure-lsp ignore those analysis.Describe alternatives you've considered
Try to fix the hook, but I don't think it's possible
Additional context
@borkdude started a branch generated-location which partially fixes it ATM but there are still missing analysis to be considered:
I think those are the ones interested for hooks, not sure If I missed any other
The text was updated successfully, but these errors were encountered: