You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried restarting VS Code or running Vetur: Restart VLS
Info
Platform: macOS
Vetur version: v0.34.1
VS Code version: v1.60.2
Vue version: v2.6.11
vue-class-component version: v7.2.6
TypeScript version: v4.4.2
Problem
When using Properties and Getters/Setters (Data and Computed Properties) in inline event handler code, the implicit this appears to be scoped to the type of the event itself. This only happens when you use getters/setters or direct property access. See:
But this doesn't happen when using methods:
In addition, the autocomplete features do correctly understand the context:
Reproducible Case
I am currently working in a private repository and don't have a simple repro case. It happens in every single SFC in this repository, however.
As indicated in the "Info" section above, the codebase currently uses the vue-class-component module for improved ergonomics for component definition. Perhaps this is a factor?
This is likely important as when I say "Properties" above, I'm referring to Vue component Data and when I say "Getters/Setters", I'm referring to Vue Computed Properties.
The text was updated successfully, but these errors were encountered:
Vetur: Restart VLS
Info
Problem
When using Properties and Getters/Setters (Data and Computed Properties) in inline event handler code, the implicit
this
appears to be scoped to the type of the event itself. This only happens when you use getters/setters or direct property access. See:But this doesn't happen when using methods:
In addition, the autocomplete features do correctly understand the context:
Reproducible Case
I am currently working in a private repository and don't have a simple repro case. It happens in every single SFC in this repository, however.
As indicated in the "Info" section above, the codebase currently uses the
vue-class-component
module for improved ergonomics for component definition. Perhaps this is a factor?This is likely important as when I say "Properties" above, I'm referring to Vue component Data and when I say "Getters/Setters", I'm referring to Vue Computed Properties.
The text was updated successfully, but these errors were encountered: