This commit is contained in:
Johannes Rieken
2018-06-26 16:27:25 +02:00
parent 415a55f87d
commit 6102bcb3ee
@@ -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) {