jeapostrophe / racket-langserver

Other
262 stars 24 forks source link

rename FormattingOptions fields to racket style #121

Closed 6cdh closed 1 year ago

6cdh commented 1 year ago

My original idea is to generate all these functions when given a macro

(define-lsp-type FormattingOptions
  [tabSize uinteger]
  [insertSpaces boolean]
  [trimTrailingWhitespace (undef boolean)]
  [insertFinalNewline (undef boolean)]
  [trimFinalNewlines (undef boolean)]
  [key (undef (object string (or boolean integer string)))])

But it finally became very large and unnecessary complex. In this PR, I simply rename all these fields and keywords.