language-tools
language-tools copied to clipboard
F2 when used on a tag in `<template>` renames components globally in Nuxt
I'm not sure if we should handle this case :eyes:
I mean can't F2 work the same way with regular tags and custom components? I was used to F2 changing the tag on the selected element, not changing the component name globally.
Do you mean linked edit?
Screencast_20240408_105448.webm
Here's what happens when using F2 on a tag. In Nuxt it kinda sucks because the file name is not updated and the codegen stuff freaks out.
Just edit them directly, don't use F2.
Sure, but can you perhaps make this an opt-out feature? Or make it so that it only works when a component is explicitly imported? (without auto-imports it works fine)