Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Multiple FilterText Values in CompletionItem #77964

Open
AlejandroJorba opened this issue Apr 2, 2025 · 0 comments
Open

Support for Multiple FilterText Values in CompletionItem #77964

AlejandroJorba opened this issue Apr 2, 2025 · 0 comments
Labels
Area-IDE Feature Request untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@AlejandroJorba
Copy link

Issue Title:
Support for Multiple FilterText Values in CompletionItem

Issue Description:
Currently, CompletionItem only supports a single FilterText value. However, there are cases where multiple terms should match a single completion item.

Proposal:
Allow CompletionItem to accept an array of FilterText values instead of just one.

Languages applicable:
C#
VB.NET

Code Example (Current Limitation):

var item = new CompletionItem(
    displayText: "foreach",
    filterText: "for"  // Only a single filter text is allowed
);

🚨 Problem: If I want "foreach" to appear when the user types "for" or "loop", I can't do that today.

Proposed Solution:
Add support for multiple filter terms:

var item = new CompletionItem(
    displayText: "foreach",
    filterText: new[] { "for", "loop", "foreach" }  // Allow multiple filter texts
);

Use Case & Justification:
Helps match different user intents (e.g., "func" should match "function" and "fn").
Improves IDE experience by reducing unnecessary typing.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Feature Request untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

1 participant