![]() Closes #29982 When auto-importing TypeScript functions with generic type arguments (like `useRef<HTMLDivElement>(null)`), the language server returns snippets with placeholders (e.g., `useRef(${1:initialValue})$0`). While useful for new function calls, this behavior breaks existing code when renaming functions that already have parameters. For example, completing `useR^<HTMLDivElement>(null)` incorrectly results in `useRef(initialValue)^<HTMLDivElement>(null)`. Related upstream issue: https://github.com/microsoft/TypeScript/issues/51758 Similar workaround fix: https://github.com/pmizio/typescript-tools.nvim/pull/147 Release Notes: - Fixed TypeScript auto-import behavior where functions with generic type arguments (like `useRef<HTMLDivElement>(null)`) would incorrectly insert snippet placeholders, breaking the syntax. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-GPL |