Skip to content

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

@scriptease

Description

@scriptease

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions