Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

No syntax highligthing in js files for JSDoc @property

未关闭
#860 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
领域
tooling

调研方向

从此仓库中的 TextMate 语法文件开始,在受支持的编辑器中复现所提供的 JavaScript JSDoc 示例。跟踪 JSDoc 标签的高亮方式,然后使 @property 及其 @prop 形式与预期的 TypeScript 文档高亮保持一致,并直观验证该示例。

由索引模型根据 Issue 内容生成。

描述

A Visual Studio customer has reported an issue regarding syntax highlighting for @property tags in JSDoc comments:

https://developercommunity2.visualstudio.com/t/no-syntax-highligthing-in-js-files-for-/1345869

The sample code referred to is:

/**
 * @typedef {Object} SpecialType - creates a new type named 'SpecialType'
 * @property {string} prop1 - a string property of SpecialType
 * @property {number} prop2 - a number property of SpecialType
 * @property {number=} prop3 - an optional number property of SpecialType
 * @prop {number} [prop4] - an optional number property of SpecialType
 * @prop {number} [prop5=42] - an optional number property of SpecialType with default
 */

/** @type {SpecialType} */
var specialTypeObject;
specialTypeObject.prop3;
🙁 Actual behavior

No syntax highlighting for @property tags

🙂 Expected behavior

Syntax highlighting similar to what is shown in the docs: https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#typedef-callback-and-param

主要语言
TypeScript
星标
471
派生
149
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/TypeScript-TmLanguage 的其他 Issue

查看 microsoft/TypeScript-TmLanguage 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。