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.
1 parent e94d7c1 commit 39ec581Copy full SHA for 39ec581
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