Skip to content

Commit

Permalink
refactor: remove redunant code
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila committed Feb 19, 2025
1 parent 3b9710c commit 457892a
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ export class InsertFinalNewLineAction extends EditorAction {
editor.pushUndoStop();
editor.executeCommands(this.id, [command]);
editor.pushUndoStop();

if (args.reason === 'auto-save') {
// See https://github.com/editorconfig/editorconfig-vscode/issues/330
// It is very convenient for the editor config extension to invoke this action.
// So, if we get a reason:'auto-save' passed in, let's set cursor back to initial position after inserting final new line.
editor.setSelection(selection);
}
}
}

Expand Down

0 comments on commit 457892a

Please sign in to comment.