zardoy / typescript-vscode-plugins

NO LIMITS FOR TS! Isn't this the most advanced TypeScript plugin as VS Code extension ever created?
https://marketplace.visualstudio.com/items?itemName=zardoy.ts-essential-plugins
MIT License
55 stars 5 forks source link

Removes references for props in class #165

Closed zardoy closed 1 year ago

zardoy commented 1 year ago

.js code:

class A {
    b() {
        this.a = 5
        this.a = 6
        this.a = 7
        console.log(this.a)
    }
}

If trigger on this.a it display only only console.log(this.a) it seems with this pattern its possible to have a few definitions If you trigger on console.log(this.a) it will display all of them, which seems to be more logical

Its caused by tsEssentialPlugins.removeDefinitionFromReferences, so I think it would be logical to just disable this feature on this

zardoy commented 1 year ago

I decided to disable removeDefinitionFromReferences when in this.anyProperty request positions because of ambiguity.