From 8ee3c3dd42429df5b6e2f5c4d9fe036cc33904a2 Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Fri, 5 Nov 2021 11:36:23 +0100 Subject: [PATCH] Clarify rename --- _specifications/specification-3-17.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_specifications/specification-3-17.md b/_specifications/specification-3-17.md index db58d1f..a49e1ce 100644 --- a/_specifications/specification-3-17.md +++ b/_specifications/specification-3-17.md @@ -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). #### Prepare Rename Request (:leftwards_arrow_with_hook:)