-
Notifications
You must be signed in to change notification settings - Fork 47
Local completions #217
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
Local completions #217
Conversation
828dadd
to
3944206
Compare
Codecov Report
@@ Coverage Diff @@
## master #217 +/- ##
==========================================
+ Coverage 80.2% 80.26% +0.05%
==========================================
Files 8 8
Lines 672 679 +7
==========================================
+ Hits 539 545 +6
- Misses 133 134 +1
Continue to review full report at Codecov.
|
# local completions | ||
vars = filter!(locals(frame)) do v | ||
# xref: https://github.com/JunoLab/Atom.jl/blob/master/src/debugger/stepper.jl#L411-L421 | ||
if v.name == Symbol("#self") && (v.value isa Type || sizeof(v.value) == 0) |
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.
we may want to remove the latter filter conditions here.
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.
We have that in JuliaInterpreter as well but I am not sure I see the reason for it. I think it can be removed here anyway.
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.
hm, maybe @timholy knows 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.
The #self
is probably sufficient. It's not always there (I can't remember where I recently encountered such a situation), but it should be sufficient. Assuming I started that trend I was probably just being paranoid.
Thanks, this is a very nice enhancement. |
08cb5cc
to
cbab584
Compare
Enables local completions in
julia_prompt