-
Notifications
You must be signed in to change notification settings - Fork 194
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
allow disabling automatic alias insertion #774
Comments
+1 from me too. Spent a while figuring out why |
Fuzzy search. |
That’s pretty darn fuzzy 😂 |
I think we need to display full module name if the alias is going to be inserted (or some other visual information). There's a detail field but it's not displayed by default. |
I'd go further for protocol implementations and eliminate them entirely, I've never once needed to alias one. It's noisy and there are a lot of them. |
I desperately want to turn this off -- it's causing a couple of unnoticed bugs per day at the moment. I will roll back to v0.11 for now but will try to understand how (IDE-independent?) configuration is possible to add a config flag. |
I decided to completely remove auto aliasing of protocol implementations. This should cut a big part of unwanted items. I'm also experimenting with improvements to displaying of those alias items. |
@lukaszsamson - that's a big improvement on both fronts (removing the protocol implementations, and adding the description). Given the functionality silently updates the code (although in much better ways with the first two changes), I still think it makes sense to have the option to disable it. |
I too vote for the ability for this to be disabled, or removed altogether. I am sure that it seemed like a good idea but I don't think I've every found it useful but regularly get caught out by unintentional incorrect aliasing, often in weird places, all the time. |
Agreed! Currently in a bootcamp and for everyone this is confusing and causes errors. Would really appreciate the option to disable it. |
I'm now seeing |
Yes |
PR please. And please post a piece of code that reproduces |
If setting aside the issue with
@LukasKnuth, am I on the right road? |
|
please post a piece of code that reproduces alias nil
I'm struggling to reproduce it cleanly so far, but will keep trying.
|
Environment
Current behavior
When looking for a Module via auto-completion, such as "Application", many items are shown to select from:
These suggestions all look the same. If I auto-complete the first one, it automatically adds
to the top of my file. This is not what I'm looking for.
Additionally, if I have modules inside of my Module, autocompleting these anywhere will add an alias as well, which I guess is correct but also useless:
I looked through the extension settings but can't find a way to disable this feature. I looked though the code in #722 (which I understand introduces this feature) but couldn't find anything either.
Expected behavior
Application
beforePlug.Crypto.Application
The text was updated successfully, but these errors were encountered: