Skip to content
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

REPL completions: Enter import mode only when cursor beyond "import" #57473

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

xal-0
Copy link
Member

@xal-0 xal-0 commented Feb 19, 2025

Adds a position argument to get_import_mode.

Fixes #55842

@xal-0 xal-0 force-pushed the repl-autocomplete-fixes branch from a2096b0 to bd0f54c Compare February 19, 2025 21:28
@xal-0 xal-0 added REPL Julia's REPL (Read Eval Print Loop) bugfix This change fixes an existing bug labels Feb 19, 2025
@xal-0 xal-0 force-pushed the repl-autocomplete-fixes branch from 6349257 to a5113be Compare February 26, 2025 21:11
Don't require a using/import to be on its own line to enter import mode; instead
look for partial import expressions and require the cursor be in the range where
modules/imported names would go.

Fixes JuliaLang#56389 (including the fix for JuliaLang#55842)
@xal-0 xal-0 force-pushed the repl-autocomplete-fixes branch from a5113be to 6c59474 Compare February 27, 2025 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REPL] Autocompletion broken for macro names if there's other text after it
2 participants