Skip to content

Completion highlighting incorrect when using filterText #168265

@mroch

Description

@mroch

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 220f938 (2022-12-06)
  • OS Version:

Steps to Reproduce:

  1. provideCompletionItems that returns an item with filterText = "x_fooBar" and label = "fooBar" (filtertext doesn't matter, as long as it matches whatever is typed)
  2. type ob
  3. highlight should be fo^o^Bar, but you get foo^Bar (the o should be highlighted and is not)

some examples from typescript (typing in completionModel.ts):

Screenshot 2022-12-06 at 10 41 36 PM

Screenshot 2022-12-06 at 10 41 03 PM

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsiderssuggestIntelliSense, Auto CompleteverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions