Microsoft/TypeScript

[semantic] [typescript] No special highlighting for the 'this' parameter

Aperta

#48.573 aperta il 5 apr 2022

 (1 commento) (2 reazioni) (1 assegnatario)TypeScript (13.395 fork)batch import
Experience EnhancementHelp WantedSuggestion

Metriche repository

Star
 (108.860 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.65.0
  • OS Version: macOS 12.2.1

What's wrong: The typescript semantic highlighter is currently highlighting the special 'this' parameter of function types/declarations the same as any other normal parameter.

Expectation: I would expect the 'this' keyword to be highlighted as a keyword.

Possible Solutions: Make the keyword token type "thisParameter" or add a modifier to it.

Guida contributor