Skip to content

REPL: make DictCompletion context module aware #34908

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

Merged
merged 1 commit into from
Apr 1, 2020

Conversation

aviatesk
Copy link
Member

@aviatesk aviatesk commented Feb 27, 2020

Makes DictCompletions aware of a context-module.

Certain tools (like Juno, Debugger.jl etc) use REPLCompletions in a way that completions are generated in a context of a module other than Main, and can benefit from this change.
Not breaking at all, since context_module defaults to Main.

@aviatesk aviatesk changed the title make DictCompletion context module aware REPL: make DictCompletion context module aware Feb 27, 2020
@aviatesk aviatesk force-pushed the avi/dictcompinmod branch from 6b4bbb1 to dc31e2e Compare March 4, 2020 15:31
@aviatesk aviatesk force-pushed the avi/dictcompinmod branch 2 times, most recently from 16dcaca to a0346ae Compare March 19, 2020 03:57
@aviatesk aviatesk force-pushed the avi/dictcompinmod branch from a0346ae to 129e04f Compare March 26, 2020 06:32
@aviatesk
Copy link
Member Author

aviatesk commented Apr 1, 2020

@pfitzseb @StefanKarpinski @KristofferC any of you could give a review on this ? This change doesn't change any behaviour of usual REPL process (where we currently don't have module switching support), but should help other REPL environments where REPLCompletions.completions is used.

@aviatesk aviatesk force-pushed the avi/dictcompinmod branch from 129e04f to c0b3678 Compare April 1, 2020 05:21
@StefanKarpinski
Copy link
Member

StefanKarpinski commented Apr 1, 2020

I've never touched context_module before so probably not the best reviewer. @pfitzseb, you seem to have committed code that did something with context_module most recently. Would you mind having a look at this and I'll merge if it looks good to you?

@KristofferC KristofferC merged commit c54f80c into JuliaLang:master Apr 1, 2020
@StefanKarpinski
Copy link
Member

Thanks, @KristofferC!

@aviatesk aviatesk deleted the avi/dictcompinmod branch April 1, 2020 15:01
@aviatesk
Copy link
Member Author

aviatesk commented Apr 1, 2020

thanks you guys !

oxinabox pushed a commit to oxinabox/julia that referenced this pull request Apr 8, 2020
ravibitsgoa pushed a commit to ravibitsgoa/julia that referenced this pull request Apr 9, 2020
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.

3 participants