microsoft / microsoft/vscode

Refactor extension proposals check to use Array.prototype.includes

未关闭
#334,653 0 条评论 0 个 reaction 已指派 1 人 已被 @dbaeumer 认领 在 GitHub 查看
stale triage-needed
主要语言
TypeScript
星标
193k
派生
42.4k
PR 合并指标
PR 指标待抓取

描述

**Problem/Feature Description**
In the extension proposal utility, the code currently uses `existing.indexOf(e.id) === -1` to filter known extensions.

**Proposed Solution**
Replace `existing.indexOf(e.id) === -1` with modern TypeScript/JavaScript syntax using `!existing.includes(e.id)` to improve code readability and maintainability.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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