Skip to content

Inlay hints' text edits do not apply when being resolved #193124

@SomeoneToIgnore

Description

@SomeoneToIgnore

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

  • VS Code Version:
  • OS Version:
Version: 1.82.1
Commit: 6509174151d557a81c9d0b5f8a5a1e9274db5585
Date: 2023-09-08T08:49:22.656Z
Electron: 25.8.0
ElectronBuildId: 23503258
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 22.6.0

Steps to Reproduce:

  1. Have a language server that is able to resolve textEdits field of inlay hints, e.g. rust-analyzer
  2. Get a hint, hover it and double click it, to insert hint's edit
    Expected: the document gets edited with hint contents
    Actual: nothing happens, but hint resolve definitely happens as LSP log shows, and we can cmd+click certain hints (which means r-a resolved label.location)

Additional information: if textEdits is not resolved (see patch for rust-analyzer in rust-lang/rust-analyzer#15604 or remove the corresponding client hint resolve capability), double clicking the hint works.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginlay-hintsinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions