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

Why is the scoring preferring different case over same case #110

Open
scriptease opened this issue Dec 9, 2015 · 0 comments
Open

Why is the scoring preferring different case over same case #110

scriptease opened this issue Dec 9, 2015 · 0 comments

Comments

@scriptease
Copy link

Hello all,

first of all thanks for the great plugin, i have been using it for quite a while but i had to disable it recently.

I have a question that annoys me so much that i had to turn of fuzzy autocomplete for swift files:

When i work in a method and the class has a variable named the same as another class, then the scoring will always select the class and not the variable (even if the entered prefix starts with a lower letter), it never selects the variable which i want and always the class. The setting "Require prefix set to 2" doesn't solve the issue.

The problem is the wrong suggestion even works for the method/propery matching but will now return a function pointer instead of the call, and it takes a lot of time to just remove the unwanted code that was inserted.

It would be great to know how i can tweak it to fix this issue.

I would greatly appreciate support.

Florian


Example:

class SyncManager{}

class Test{
    let syncManager = SyncManager()

    func foo(){
       synMan <---- Codehinting will always select SyncManager with a higher score than syncManager even if it matches more characters
    }
}

bildschirmfoto 2015-12-09 um 18 01 48

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

No branches or pull requests

1 participant