Skip to content

Commit

Permalink
fix(DocumentWatcher): copy selections by value
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila committed Jan 30, 2025
1 parent e1dc39a commit aac35f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DocumentWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class DocumentWatcher {
const activeEditor = window.activeTextEditor
const activeDoc = activeEditor?.document
if (activeDoc && activeDoc === e.document && activeEditor) {
selections = activeEditor.selections
selections = [...activeEditor.selections]
}
const transformations = this.calculatePreSaveTransformations(
e.document,
Expand Down

0 comments on commit aac35f8

Please sign in to comment.