diff options
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/commands/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/code/src/commands/index.ts b/editors/code/src/commands/index.ts index 770d11bd3..0937b495c 100644 --- a/editors/code/src/commands/index.ts +++ b/editors/code/src/commands/index.ts | |||
@@ -65,7 +65,8 @@ export function applySnippetWorkspaceEdit(_ctx: Ctx): Cmd { | |||
65 | let lineDelta = 0; | 65 | let lineDelta = 0; |
66 | await editor.edit((builder) => { | 66 | await editor.edit((builder) => { |
67 | for (const indel of edits) { | 67 | for (const indel of edits) { |
68 | if (indel.newText.indexOf('$0') !== -1) { | 68 | const isSnippet = indel.newText.indexOf('$0') !== -1 || indel.newText.indexOf('${') !== -1; |
69 | if (isSnippet) { | ||
69 | editWithSnippet = indel; | 70 | editWithSnippet = indel; |
70 | } else { | 71 | } else { |
71 | if (!editWithSnippet) { | 72 | if (!editWithSnippet) { |