-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate the new suitable ClojureScript completion #641
Integrate the new suitable ClojureScript completion #641
Conversation
bbb01f9
to
f81ffd6
Compare
f81ffd6
to
809df44
Compare
Found a couple of problems, working on patches. |
0ffff4c
to
98a6d61
Compare
Roger that! FYI - I plan to cut a new release in about a week (for the IN/Clojure conference). |
d80ef34
to
be1cd01
Compare
:compliment.sources.namespaces-and-classes/namespaces-and-classes | ||
:compliment.sources.special-forms/special-forms]) | ||
|
||
(def +cljs-sources+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the + signs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is a (questionable 😄) convention I got from boot for globals that are not ^:dynamic
. I can get rid of it if we don't like it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems weird to me, plus it's not consistent with the rest of our code. Let's remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do
:extra-metadata extra-metadata})))) | ||
(binding [suitable-sources/*compiler-env* cljs-env] | ||
(concat (complete/completions prefix (merge completion-opts {:sources +cljs-sources+})) | ||
(when enhanced-cljs-completion? (suitable/complete-for-nrepl msg)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this just add one more compliment source?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far I understand, the enhanced completions are not a defsource
at the moment, maybe @rksm can expand on that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, let's hear what he'll tell us about those. It just seems super strange to me to have one set of completions as compliment source and the others as something else.
You'll also have to to rebase and update the changelog. |
9769c93
to
4c6c131
Compare
This patch adds the necessary setup for ClojureScript completions with clj-suitable. It also inlines the call to cljs-complete so that we avoid having a wrapper.
:dependencies [[nrepl "0.6.0"] | ||
^:inline-dep [cider/orchard "0.5.5"] | ||
^:inline-dep [thunknyc/profile "0.5.2"] | ||
^:inline-dep [mvxcvi/puget "1.2.0"] | ||
^:inline-dep [fipp "0.6.22"] ; can be removed in unresolved-tree mode | ||
^:inline-dep [compliment "0.3.10"] | ||
^:inline-dep [cljs-tooling "0.3.1"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gone!
I'll merge this as it is. We can fix the missing compliment source situation later. |
This patch adds the new feature to
cider-nrepl
and also deprecatescljs-tooling
.It depends on the new version of
clj-suitable
andcompliment
.Before submitting a PR make sure the following things have been done:
Note: If you're just starting out to hack on
cider-nrepl
you might findnREPL's documentation and the
"Design" section of the README extremely useful.*
Thanks!