Clarify rename

This commit is contained in:
Dirk Baeumer 2021-11-05 11:36:23 +01:00
parent 215b38b4be
commit 8ee3c3dd42
No known key found for this signature in database
GPG key ID: DD95715335E91385

View file

@ -7845,8 +7845,8 @@ interface RenameParams extends TextDocumentPositionParams,
```
_Response_:
* result: [`WorkspaceEdit`](#workspaceedit) \| `null` describing the modification to the workspace.
* error: code and message set in case an exception happens during the rename request.
* result: [`WorkspaceEdit`](#workspaceedit) \| `null` describing the modification to the workspace. `null` should be treated the same was as [`WorkspaceEdit`](#workspaceedit) with no changes (no change was required).
* error: code and message set in case when rename could not be performed for any reason. Examples include: there is nothing at given `position` to rename (like a space), given symbol does not support renaming by the server or the code is invalid (e.g. does not compile).
#### <a href="#textDocument_prepareRename" name="textDocument_prepareRename" class="anchor">Prepare Rename Request (:leftwards_arrow_with_hook:)</a>