-
-
Notifications
You must be signed in to change notification settings - Fork 293
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 variable autocomplete #1925
Conversation
Try this Pull Request!Open Julia and type: julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="autocomplete_locals")
julia> using Pluto |
Nice :) Anything specific for it to be a draft? Apart from a console.log it looks good to me. |
i would like to fix this before merging: Pluto.jl/frontend/components/CellInput/scopestate_statefield.js Lines 379 to 381 in 2e02b82
|
2e02b82
to
66eee00
Compare
Should be good to go! |
Awesome! I noticed one issue: if I autocomplete My guess is that the real Julia autocomplete is taking too long in this case (lots of options with Schermopname.2022-03-21.om.14.00.10.mov |
Fixed! Schermopname.2022-03-21.om.14.07.43.mov |
Co-authored-by: Fons van der Plas <[email protected]>
Co-authored-by: Fons van der Plas <[email protected]>
@dralletje pointed out that this has a big performance impact because it makes |
Enabled again in #3151 |
This collects all local variables in a new scopestate field along with their "validity" range (range in which they are valid). Can be used for autocompletion of local variable and enhanced linting in #1859 (also potentially renaming of variables). @dralletje, what do you think about this approach ? (lezer-matcher is insane btw 🤯)