-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
RFC: module validation check within CSTParser-based module traverse #215
Conversation
- don't enter submodules in `modulefiles` - enable gotos within unsaved editors - rename refactor on goto.jl - correct lines in goto's secondary - add clearsymbols handler
Codecov Report
@@ Coverage Diff @@
## master #215 +/- ##
==========================================
+ Coverage 40.22% 40.47% +0.24%
==========================================
Files 40 40
Lines 1857 1868 +11
==========================================
+ Hits 747 756 +9
- Misses 1110 1112 +2
Continue to review full report at Codecov.
|
Updated the description. |
ca2f8fd
to
21f212e
Compare
I first tried to fix this by introducing a flag argument for I may try to implement that anyway, but also want to hear better ideas if there are. |
d542dad
to
904cf6a
Compare
- fixes two broken test cases
Okay, I've implemented the fix along with this way within the latest commit. Now I've fixed all the issues that I'm trying to address within this PR, and I would welcome review or comment :) |
# ignore toplevel items outside of `mod` when `path` is an entry file | ||
entrypath, _ = moduledefinition(m) | ||
inmod = path != entrypath | ||
items = toplevelitems(text; mod = stripdotprefixes(mod), inmod = inmod) |
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.
Now there are at most 2 calls of toplevelitems
in updateeditor
handler, since we don't want module escaping in outline but do want in symbols update.
136a5ff
to
e175233
Compare
Looks good, nice work! |
@pfitzseb |
misc updates around JunoLab/Atom.jl#215
No, but I'll let you know if I figure out something better ;) |
main purpose
fixes module escaping issues within CSTPraser-based module traverse
isdebugging
inAtom
module when we traverseAtom.JunoDebugger
)That would make goto and rename refactors (#203) more "correct", and may also help JunoLab/Juno.jl#411.
sub note
I also included changes that enables gotos within unsaved editors