From cbfbc6dd357bc7a159cefcc49bbdd104b5bca8b8 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Mon, 10 Feb 2025 03:43:45 -0500 Subject: [PATCH] Clarify that `$0` should not use any other snippet syntax (#2087) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Dirk Bäumer --- _specifications/lsp/3.18/language/completion.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_specifications/lsp/3.18/language/completion.md b/_specifications/lsp/3.18/language/completion.md index ec8c989..406df39 100644 --- a/_specifications/lsp/3.18/language/completion.md +++ b/_specifications/lsp/3.18/language/completion.md @@ -879,7 +879,9 @@ The `body` of a snippet can use special constructs to control cursors and the te ##### Tab stops -With tab stops, you can make the editor cursor move inside a snippet. Use `$1`, `$2`, and so on to specify cursor locations. The number is the order in which tab stops will be visited, whereas `$0` denotes the final cursor position. Multiple tab stops are linked and updated in sync. +With tab stops, you can make the editor cursor move inside a snippet. Use `$1`, `$2`, and so on to specify cursor locations. The number is the order in which tab stops will be visited. Multiple tab stops are linked and updated in sync. + +The `$0` tab stop denotes the final cursor position. This tab stop should not be combined with other snippet syntax - placeholders, choices, variables or transforms - it should only take the form `$0`. ##### Placeholders