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

Mistyped standard attributes should give a warning

未关闭
#14,094 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp
领域
tooling

调研方向

在 C/C++ 扩展中复现报告的、包含 [[falthrough]] 的 C++ switch 示例,并将其与有效的 [[fallthrough]] 属性进行比较。跟踪该扩展现有的标准属性和诊断处理方式;完成标准是错误拼写的属性会产生警告,而不会将有效属性当作错误处理。

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

描述

Feature Request Language Service parser Visual Studio

Type: Feature Request

I recently typed code similar to this:

switch (rule) {
    case EXPRESSION:
        /* ... */
        [[falthrough]];
    default:
}
/* ... */

Where's the error? It's hard to notice, but [[fallthrough]], a statement which tells the compiler not to warn on falling through the bottom of a case, is mistyped as [[falthrough]], without one of the Ls. Technically, this isn't a syntax error, but it should be a warning in VS Code since the statement won't do anything.

Extension version: 1.29.2
VS Code version: Code 1.106.3 (bf9252a2fb45be6893dd8870c0bf37e2e1766d61, 2025-11-25T22:28:18.024Z)
OS version: Linux x64 6.8.0-88-generic
Modes:

主要语言
TypeScript
星标
6.2k
派生
1.7k
平均合并
1 天 4 小时
30 天内合并 PR
58

贡献指南

打开贡献指南

从这里开始

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

microsoft/vscode-cpptools 的其他 Issue

查看 microsoft/vscode-cpptools 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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