jeapostrophe / racket-langserver

Other
269 stars 24 forks source link

provides `Diagnostic` for unused variable #87

Closed dannypsnl closed 1 year ago

dannypsnl commented 1 year ago

This PR creates three things for "unused variable"

  1. diagnostic hints for it
  2. ignore variables that prefix with _, e.g. _xxx
  3. quick fix that fixes it with prepending _ to variable

Notice that the quick fix needs the client's ability

@jeapostrophe do you know who can update magic-racket to enable textDocument/codeAction?

demo diagnostic

圖片

demo code action

圖片
jeapostrophe commented 1 year ago

Cool!

dannypsnl commented 1 year ago

@jeapostrophe This is ready by the way.

jeapostrophe commented 1 year ago

Excellent!