language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Rename doesn't apply to `$$Generics`

Open janosh opened this issue 2 years ago • 0 comments

Describe the bug

Highlight foo in the snippet below, press F2 to rename and enter any string as new name. foo will not be renamed in $$Generic<foo>.

Screenshot 2023-06-15 at 11 17 16

Reproduction

<script lang="ts">
  type foo = string | number

  type bar = $$Generic<foo>
</script>

Expected behaviour

If I enter baz as new name for foo, I expect

- type bar = $$Generic<foo>
+ type bar = $$Generic<bar>

System Info

  • OS: macOS
  • IDE: VSCode

Which package is the issue about?

svelte-language-server

Additional Information, eg. Screenshots

No response

janosh avatar Jun 15 '23 10:06 janosh