-
Notifications
You must be signed in to change notification settings - Fork 85
Conversation
Working on the tests for this one |
43953ca
to
4098577
Compare
src/test/lumo/lumo/repl_tests.cljs
Outdated
(testing "arbitrary fully qualified keyword" | ||
(s/def :arbitrary/a-spec string?) | ||
(is-contains-completion ":arbitrary/" ":arbitrary/a-spec") | ||
(reset! s/registry-ref {}))))) |
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.
does it work for aliased nses?
e.g. (s/def ::common/foo string?)
and contains a completion for ::common/f
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.
Gonna add a test for that
4098577
to
984e3bd
Compare
(comp (mapcat keys) (map str)) | ||
((juxt :renames :rename-macros :uses :use-macros) (get-namespace cur-ns))))) | ||
(concat (completion-candidates-for-spec cur-ns) | ||
(into (completion-candidates-for-ns cur-ns true) |
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.
I am not entirely sure we need this. It gets spec completions for the current namespace. What do you think?
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.
might be needed for ::a-spec
-style completions?
Here it is, spec completions are working fine.
I need some more time if we want to setup a couple of tests, but it looks like it is already working fine. One thing to think about is the position of the completion candidates. I put the before everything at the moment.
Any comment/feedback will be addressed 😄