@codingame/monaco-vscode-emmet-default-extension 1.82.6 → 1.83.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18714,8 +18714,8 @@ async function updateTag(tagName) {
18714
18714
  if (!rootNode) {
18715
18715
  return;
18716
18716
  }
18717
- const rangesToUpdate = Array.from(editor.selections).reverse()
18718
- .reduce((prev, selection) => prev.concat(getRangesToUpdate(document, selection, rootNode)), []);
18717
+ const rangesToUpdate = editor.selections
18718
+ .reduceRight((prev, selection) => prev.concat(getRangesToUpdate(document, selection, rootNode)), []);
18719
18719
  if (!rangesToUpdate.length) {
18720
18720
  return;
18721
18721
  }