Microsoft/TypeScript

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

Open

#48.573 aberto em 5 de abr. de 2022

Ver no GitHub
 (1 comment) (2 reactions) (1 assignee)TypeScript (6.726 forks)batch import
Experience EnhancementHelp WantedSuggestion

Métricas do repositório

Stars
 (48.455 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)

Description

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.

Guia do colaborador