Replies: 1 comment 3 replies
-
|
We should have a look at #1663 and see if Calva can do this better. I don't know how to disable the feature. You mean clojure-lsp settings do not have a switch for it? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Somewhere in the stack of clj-kondo, clojure-lsp, and Calva is an apparently undocumented feature (#1663, perhaps?) that automatically adds
requires to thenswhen you accept an autocomplete suggestion for an ns alias that it recognizes. This is great, except that it's usually wrong, so I want to turn it off. How?Details of wrongness, which could go in a bug report once I figure out which project it goes in:
(require)forms that already have that ns as that alias, so it cheerfully adds duplicates (outside the comment, where they are not useful).foo/waldoit will add a duplicate as[com.example.shared-prefix.foo :as foo]. I use these only for company-specific namespaces, but wouldn't you know it, there are a lot of those.Beta Was this translation helpful? Give feedback.
All reactions