Skip to content

fix: remove duplicate Enum entry in CompletionItemKinds mapping#322700

Open
jachinsamuel wants to merge 1 commit into
microsoft:mainfrom
jachinsamuel:fix/completion-kinds-snippet-icon
Open

fix: remove duplicate Enum entry in CompletionItemKinds mapping#322700
jachinsamuel wants to merge 1 commit into
microsoft:mainfrom
jachinsamuel:fix/completion-kinds-snippet-icon

Conversation

@jachinsamuel

Copy link
Copy Markdown

Description

This PR removes a duplicate registration of the CompletionItemKind.Enum icon mapping in the CompletionItemKinds namespace's byKind Map (originally lines 405 and 407 in src/vs/editor/common/languages.ts). Removing the duplicate ensures the mapping holds unique entries.

How to test

Verify in src/vs/editor/common/languages.ts that the duplicate byKind.set(CompletionItemKind.Enum, Codicon.symbolEnum); line has been removed and all other CompletionItemKind values remain mapped.

Copilot AI review requested due to automatic review settings June 24, 2026 10:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR cleans up the CompletionItemKinds icon mapping in src/vs/editor/common/languages.ts by removing a duplicate CompletionItemKind.Enum entry from the internal byKind map, ensuring each kind is mapped only once.

Changes:

  • Removed the redundant byKind.set(CompletionItemKind.Enum, Codicon.symbolEnum); entry so the byKind map contains a single mapping for CompletionItemKind.Enum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants