TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

Support inlay hint text edits

Open mjbvz opened this issue 3 years ago • 0 comments

Search terms

  • inlay hint

Feature request

VS Code allows inlay hints to define a text edit that is applied when the hint is double clicked:

https://github.com/microsoft/vscode/blob/d949bdfb48025dd1b0e22b05501860b8f9fb6cb8/src/vscode-dts/vscode.d.ts#L4936

For JS/TS, we should support this on the type style inlay hinds, such as those for inferred types. In these cases, double clicking should add the explicit typings to the file

This edit can be resolved lazily too if computing it in the original request is too expensive

mjbvz avatar Aug 09 '22 16:08 mjbvz