clojure-lsp
clojure-lsp copied to clipboard
Provide type suggestions after ^ character despite linting errors
Problem
When I enter type hints for a function or parameter I get a syntax errors (if I entered only a ^) or an 'Unresolved symbol' error (if I partially entered a symbol name).
In both cases, triggering suggestions returns no results.
Desired Behaviour
Symbols suggestions (ideally only types/classes) despite the linting errors.
Context
In this syntax error case I get text suggestions:
Just linking related issues https://github.com/clojure-lsp/clojure-lsp/issues/1193
@borkdude I think we would need to make clj-kondo return valid analysis when we have an invalid code like (defn foo ^ []), WDYT? similar to how clj-kondo handles invalid keywords.
The same for (defn foo ^{:type } [])
I think so yes, issue welcome
https://github.com/clj-kondo/clj-kondo/issues/1778