-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
unqualified import completion #3054
Conversation
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.
Thank you! I've left some comments
@@ -166,6 +166,8 @@ | |||
|
|||
- Go to definition now works for direct type annotations ([Ameen Radwan](https://github.com/Acepie)) | |||
|
|||
- Completions are now provided for values and types for use in unqualified imports ([Ameen Radwan](https://github.com/Acepie)) |
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.
I think this is a little misleading as it will very rarely work. The cursor position will be outside the import definition at time of last successful compilation so it won't return any completions.
I think we may also have the same text edit bug with vscode
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.
This should work much better now. Didn't realize this was only working well because of auto bracket close before. lmk if this seems good enough now. If not I can change this
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.
I've just given this a try and it feels so nice! Thank you!!
Ok worked on this a bit and got something that works pretty nicely overall Screen.Recording.2024-04-29.at.6.47.39.AM.mov |
ed53720
to
ec36300
Compare
ec36300
to
ade819a
Compare
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.
Another fantastic improvement! You're on fire! Thank you
@@ -166,6 +166,8 @@ | |||
|
|||
- Go to definition now works for direct type annotations ([Ameen Radwan](https://github.com/Acepie)) | |||
|
|||
- Completions are now provided for values and types for use in unqualified imports ([Ameen Radwan](https://github.com/Acepie)) |
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.
I've just given this a try and it feels so nice! Thank you!!
Thanks - This is awesome! |
Closes #2892
Checks existing imports in the current module to see what is already imported and then looks through the importing module to find everything else that is importable from that module