Skip to content

Incorrect editor.suggest.showWords replacements for completion items if an LSP response takes too long #251013

Open
@atscott

Description

@atscott

Does this issue occur when all extensions are disabled?:

Yes and No. The issue occurs when a single LSP extension takes a while to return completion results (even if those results are empty). I have disabled all installed extensions other than the modified lsp-sample from vscode-extension-samples

Version: 1.100.2 (Universal)
Commit: 848b80aeb52026648a8ff9f7c45a9b0a80641e2e
Date: 2025-05-14T21:47:40.416Z
Electron: 34.5.1
ElectronBuildId: 11369351
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Steps to Reproduce:

  1. Clone https://github.com/atscott/lsp-example-completions. This is the lsp-sample with small edits to demonstrate the behavior
  2. Install dependencies: npm i
  3. compile: 'npm run compile'
  4. Launch the client
  5. Open an HTML file and make its contents be:
<div class="something"></div>
<div class="something"></div>
  1. Go to the second "something" text and ctrl+backspace it and type "so" in quick succession
  2. Accept the "something" completion item when it appears and notice that the editor clobbers the closing quote
characterClobberDemo.mov

If this is expected for some reason, I would expect that at least the documentation needs to be updated to describe how to handle this correctly in the extension. I would not expect to reproduce this so easily with the lsp sample.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugsuggestIntelliSense, Auto Complete

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions