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

"No result" when trying to rename random string from schema

Open janpio opened this issue 5 years ago • 2 comments

You can hit F2 everywhere in the schema and the currently selected string will be put into a rename box. If it is not after model , after applying you will get an error "No result" though and nothing happens.

janpio avatar Aug 05 '20 20:08 janpio

This is super strange behaviour and not what any vscode user is used to.

When I edit a variable or interface in typescript, it will behave the same regardless of which place I edit it (in its definition or usage)

cyrus-za avatar Aug 05 '20 20:08 cyrus-za

This is actually expected as it is not possible to apply @map on a relation field. So renaming it is not possible.

But we could rename the field anyway without applying @map.

carmenberndt avatar Aug 06 '20 07:08 carmenberndt