Microsoft/vscode

Incorrect brackets color in JSDoc comments

已关闭

#187,307 创建于 2023年7月7日

 (7 条评论) (0 个反应) (1 位负责人)TypeScript (39,847 个派生)batch import
editor-bracket-matchingfeature-requesthelp wanted

仓库指标

星标
 (184,936 个星标)
PR 合并指标
 (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)

描述

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

  • VS Code Version: 1.80.0
  • OS Version: Windows 10 22H2 19045.3086

Steps to Reproduce:

  1. Change color of JSDoc comments' brackets in your theme file for scopes "punctuation.definition.bracket.curly.begin.jsdoc" and "punctuation.definition.bracket.curly.end.jsdoc".

  2. Reload window or restart editor. And you'll see no difference. Brackets's color is the same as for all the code. Theme JSDoc color doesn't affect global color, and it looks ugly.

  3. If you inspect colors by "Inspect Editor Tokens And Scopes" function, you'll see that inspector show the right color, but editor shows the global color as at the screenshot. Comment's brackets' color must be the same as "string" and "object" words' color as I made them the same in my theme:

{
      "name": "JSDoc Instance and brackets",
      "scope": [
        "entity.name.type.instance.jsdoc",
        "punctuation.definition.bracket.curly.begin.jsdoc",
        "punctuation.definition.bracket.curly.end.jsdoc",
      ],
      "settings": {
        "foreground": "#8e4a91"
      }
}

Screenshot

贡献者指南