Skip to content

Suggestion preview (ghost text) not indented correctly #167765

@gabritto

Description

@gabritto

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

  • VS Code Version: 1.73.1
  • OS Version: Windows 11

Steps to Reproduce:

Some context: I ran into the issue while working on a new kind of TypeScript completion entry, so I don't know if it happens for existing completions.
The TS version with the feature that triggers this problem can be found here: microsoft/TypeScript#50996 (comment)

  1. In a TS file like this:
enum F {
    A,
    B,
    C,
}

declare const f: F;

switch (f) {
    case|
}

Select a multiline completion entry:
image

  1. Notice that the suggestion preview text is not shown indented correctly, even though when the completion is accepted, the text is then indented correctly:
    image

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterinline-completions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions