We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e94d7c1 + 39ec581 commit 28f6b5bCopy full SHA for 28f6b5b
editors/code/src/commands/index.ts
@@ -65,7 +65,8 @@ export function applySnippetWorkspaceEdit(_ctx: Ctx): Cmd {
65
let lineDelta = 0;
66
await editor.edit((builder) => {
67
for (const indel of edits) {
68
- if (indel.newText.indexOf('$0') !== -1) {
+ const isSnippet = indel.newText.indexOf('$0') !== -1 || indel.newText.indexOf('${') !== -1;
69
+ if (isSnippet) {
70
editWithSnippet = indel;
71
} else {
72
if (!editWithSnippet) {
0 commit comments