From 975ea9a669190ee18b4c5e84ec8672062f1e7de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulysse=20G=C3=A9rard?= Date: Fri, 10 Jan 2025 12:11:02 +0100 Subject: [PATCH] Update protocol documentation --- doc/dev/PROTOCOL.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/dev/PROTOCOL.md b/doc/dev/PROTOCOL.md index 7e84bcd7e..a6b86a0ef 100644 --- a/doc/dev/PROTOCOL.md +++ b/doc/dev/PROTOCOL.md @@ -355,9 +355,13 @@ Returns either: Returns a list of locations `{'start': position, 'end': position}` of all occurrences in current buffer of the entity at the specified position. If scope -is set to `project` the returned locations will also contain a field `file`: +is set to `project` or `renaming`‡ the returned locations will also contain a field `file`: `{'file': string, 'start': position, 'end': position}`. +When the scope is set to `renaming`, all usages of all the related definitions +corresponding to an identifier will be returned. When scope is `project` only +the usages of the current definition will be returned. + ### `outline`