language-tools
language-tools copied to clipboard
"No result" when trying to rename random string from schema
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.
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)
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.