Skip to content

Commit 39ec581

Browse files
committed
Fix client-side snippets
1 parent e94d7c1 commit 39ec581

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editors/code/src/commands/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ export function applySnippetWorkspaceEdit(_ctx: Ctx): Cmd {
6565
let lineDelta = 0;
6666
await editor.edit((builder) => {
6767
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) {
6970
editWithSnippet = indel;
7071
} else {
7172
if (!editWithSnippet) {

0 commit comments

Comments
 (0)