Skip to content
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

Fix clojure.core function highlighting on ClojureScript #3386

Closed
wants to merge 2 commits into from
Closed

Conversation

vemv
Copy link
Member

@vemv vemv commented Jul 30, 2023

Part of #3385

(Needs a trivial cider-nrepl fix too, but I'm adding this as a changelog anyway. Will be upgraded in the following few days)

@@ -107,7 +107,8 @@ This will be clojure.core or cljs.core depending on the return value of the
function `cider-repl-type'."
(when-let* ((repl (cider-current-repl)))
(with-current-buffer repl
(cider-resolve--get-in (if (eq cider-repl-type 'cljs)
(cider-resolve--get-in (if (or (eq cider-repl-type 'cljs)
(derived-mode-p 'clojurescript-mode))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the code this shouldn't be needed - notice the use of with-current-buffer, which means that will always come from the REPL and you can never really have clojurescript-mode there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good eye. Then it should be a matter of simply updating cider-nrepl.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep.

@vemv
Copy link
Member Author

vemv commented Jul 31, 2023

I'll just move the changelog entry to #3379

@vemv vemv closed this Jul 31, 2023
@vemv vemv deleted the 3385 branch August 27, 2023 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants