rescript-lang / rescript-vscode

Official VSCode plugin for ReScript
MIT License
329 stars 56 forks source link

Attributes not included in reanalyze locations #991

Closed zth closed 4 months ago

zth commented 4 months ago

cc @cristianoc

Example:

  1. Create a @react.component that's unused
  2. Start the code analyzer
  3. Run the new code action for removing the unused code (available in the pre-release extension)
  4. Everything but @react.component is removed
cristianoc commented 4 months ago

This happens to be due to an issue in the parser: https://github.com/rescript-lang/rescript-compiler/pull/6791

cristianoc commented 4 months ago

Fixed in compiler master.