vscode-smart-clicks icon indicating copy to clipboard operation
vscode-smart-clicks copied to clipboard

Does not work in files containing an ECMAScript decorator

Open DallasHoff opened this issue 2 years ago • 1 comments

Describe the bug

I have found that when a JavaScript or TypeScript file contains a decorator, this extension's features stop working in that file.

Minimal Reproduction

Double click the = for the x and notice the assignment is not selected. Now remove or comment out the first line and notice that double clicking the = now works as expected.

@SomeDecorator()
class SomeDecoratedClass {}

let x = 1;

Reproduction

See description

System Info

N/A

Used Package Manager

npm

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [X] The provided reproduction is a minimal reproducible of the bug.

DallasHoff avatar Jul 26 '23 15:07 DallasHoff

We might need to upgrade our Babel parser. PR welcome :)

antfu avatar Jul 27 '23 03:07 antfu