提交 6102bcb3 编写于 作者: J Johannes Rieken

fix #52963

上级 415a55f8
......@@ -98,10 +98,12 @@ export class OneSnippet {
const range = this._editor.getModel().getDecorationRange(id);
const currentValue = this._editor.getModel().getValueInRange(range);
operations.push({ range: range, text: placeholder.transform.resolve(currentValue) });
operations.push(EditOperation.replaceMove(range, placeholder.transform.resolve(currentValue)));
}
}
this._editor.getModel().applyEdits(operations);
if (operations.length > 0) {
this._editor.executeEdits('snippet.placeholderTransform', operations);
}
}
if (fwd === true && this._placeholderGroupsIdx < this._placeholderGroups.length - 1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册