Skip to content

Simplest CompletionItem removes all leading whitespace #993

Description

@rcjsuen

Reproduced in 0.12.0 and 0.13.0-20250424-115448.

  1. Use a language server that returns the simplest CompletionItem with just label defined.
  2. Put some whitespace in front before invoking code completion.
  3. Accept the item.
  4. All leading whitespace is deleted.
{
  "isIncomplete": false,
  "items": [
    {
      "label": "driver"
    }
  ]
}
2025-04-25-simple-code-completion-label-bug.mov

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions