Skip to content

Adding a textEdit to a completionItem from a language server causes VSCode to display 'No suggestions.' #194580

@rictic

Description

@rictic

Does this issue occur when all extensions are disabled?: N/A

  • VS Code Version: v1.82.2
  • OS Version: macOS Venture 13.0.1 (22A400)

Steps to Reproduce:

  1. Take a working language server that is returning simple CompletionItems, with with just a label and kind, with no completion resolver.
  2. Add the textEdit field to those CompletionItems, to better control identifier boundaries.
  3. Observe that VSCode no longer displays your completions.

Commentary:

I suspect that there are more constraints on using textEdit than are documented at https://microsoft.github.io/language-server-protocol/specifications/specification-3-14/#textDocument_completion.

Screenshot showing VSCode displaying no completion items, as well as the textDocument/completion response sent from the language server, where the completions were requested.

Screenshot 2023-10-01 at 6 14 32 PM

Metadata

Metadata

Assignees

Labels

*questionIssue represents a question, should be posted to StackOverflow (VS Code)info-neededIssue requires more information from postersuggestIntelliSense, Auto Complete

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions