From b585a44850768f032b16a19e1ee784cdbc98f037 Mon Sep 17 00:00:00 2001 From: Phil Cohen Date: Thu, 23 Jan 2025 09:53:24 -0800 Subject: [PATCH] Update packages/cursorless-engine/src/actions/GenerateSnippet/GenerateSnippetCommunity.ts --- .../src/actions/GenerateSnippet/GenerateSnippetCommunity.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cursorless-engine/src/actions/GenerateSnippet/GenerateSnippetCommunity.ts b/packages/cursorless-engine/src/actions/GenerateSnippet/GenerateSnippetCommunity.ts index e9f84c1422..af264d7fc8 100644 --- a/packages/cursorless-engine/src/actions/GenerateSnippet/GenerateSnippetCommunity.ts +++ b/packages/cursorless-engine/src/actions/GenerateSnippet/GenerateSnippetCommunity.ts @@ -221,6 +221,7 @@ function getsSnippetSelections(editor: TextEditor, range: Range): Selection[] { return selections; } +// Used to temporarily escape the $1, $2 snippet holes (the "meta snippet" holes that become live snippets when the user edits) so we can use traditional backslash escaping for the holes in the underlying snippet itself (the "user snippet" holes that will be saved as part of their new template). const PLACEHOLDER = "PLACEHOLDER_VFA77zcbLD6wXNmfMAay"; interface Variable {