-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Load current repl window namespace #904
Conversation
This makes the ns in the prompt a peekable symbol and also allows for navigating to it. Fixes #808
Marking this as ready for review, @bpringe , even though I do think I need to go over the changes some before I think they are ready to go. But if you find some time for it, please have a look. One of the things you might want to look at is that I remove the jar |
I'll have to try out / review the rest of it later, but I'm not sure if we should get rid of the clojure-lsp jar content provider. I spent a while fixing it for Windows recently in clojure-lsp, and with the code in this PR, when I try to navigate into a jar dependency on Windows it fails (just a blank file with a progress indicator that doesn't stop). The clojure-lsp jar content provider (via that dependencyContents request we make), works for Windows. Maybe if we fix Calva's to work for Windows it would be fine, but I also don't see an issue with only using clojure-lsp's jar content provider, especially since we know it's cross-platform now. |
Yes, we could use either or. It is mainly using both that I don't like. I considered using the one in the lsp module, but it had a dependency on the lsp client, and it was late here. I'll have a look. |
Trying the |
About to try this out now! |
FYI, I think there is some caching business that occurs with the content provider. If you don't see a breakpoint in the provider being hit, restart the extension development host and then try it again. I've noticed I have to do that, but after the contents are provided once, the feature works without going into the provider code again. |
Aside from fixing this, we should also log the error so we have more insight if it errors in the future. |
Added a fix for the windows issue here: #918. If you approve and merge, then this PR looks good to go, aside from anything else you wanted to do. 😃 |
…va into pez/prompt-tweaks
…r_windows Fix getJarContents for windows
So, two for one in this PR. Just because they go a bit together....
Load current repl window namespace
Make the Load Current File command work in the repl/output window, but then load the current namespace instead.
Fixes: #910
Special colon symbols and hard space in the prompt
I find myself wanting to have easy access to the namespaces shown by the prompt in the output window. This change replaces the regular
:
(colon) characters with some unicode version I found that looks the same. Then I could change the grammar some to not treat this as part of symbols.This makes the ns in the prompt a peekable symbol and also allows for navigating to it.
I also replaced the space with a hard space, hoping that that Trailing Space extension will not warn about it.
Fixes #808
My Calva PR Checklist
I have:
dev
branch. (Or have specific reasons to target some other branch.)master
. (Sorry for the nagging.)[Unreleased]
entry inCHANGELOG.md
, linking the issue(s) that the PR is addressing.ci/circleci: build
test. NB: There is a CircleCI bug that makes the Artifacts hard to find. Please see this issue for workarounds.The Calva Team PR Checklist:
Before merging we (at least one of us) have:
dev
branch (unless reasons).Ping @PEZ, @kstehn, @cfehse, @bpringe