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

Disable "Rename Symbol" option when working with embedded documents

Open ruheni opened this issue 3 years ago • 3 comments

Problem

Renaming composite type is currently not possible. However, in an attempt to rename it, VS code returns a "No Result" message.

Screenshot 2022-04-13 at 23 01 21

Suggested solution

Disable "rename symbol" for composite types if possible

ruheni avatar Apr 13 '22 21:04 ruheni

Renaming composite type is currently not possible.

What do you mean exactly by that?

Where exactly didyou try to use the Rename/F2 feature? The field that holds the composite type in a model? The type block? One of the properties inside the type block?

janpio avatar Apr 14 '22 07:04 janpio

Renaming the composite type name – the type block

ruheni avatar Apr 14 '22 08:04 ruheni

Indeed, it's currently not implemented.

The current state is not the best for that one, so it would be good to either implement or disable, though I don't think we can disable it only on type, only everywhere 🤔

Jolg42 avatar Apr 14 '22 08:04 Jolg42

Rename was done in https://github.com/prisma/language-tools/pull/1420

Jolg42 avatar May 17 '23 09:05 Jolg42