microsoft / microsoft/vscode

Refactor extension proposals check to use Array.prototype.includes

Đang mở
#334,653 0 bình luận 0 reaction 1 người được giao Được @dbaeumer nhận Xem trên GitHub
stale triage-needed
Ngôn ngữ chính
TypeScript
Star
193k
Fork
42.4k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

**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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.