TypeScript
TypeScript copied to clipboard
Support inlay hint text edits
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