File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,11 @@ class PSDocumentFormattingEditProvider implements DocumentFormattingEditProvider
90
90
"PSUseConsistentIndentation" ] ;
91
91
92
92
// Allows edits to be undone and redone is a single step.
93
- // Should we expose this through settings?
93
+ // It is usefuld to have undo stops after every edit while debugging
94
+ // hence we keep this as an option but set it true by default.
94
95
private aggregateUndoStop : boolean ;
95
96
96
- constructor ( aggregateUndoStop : boolean ) {
97
+ constructor ( aggregateUndoStop = true ) {
97
98
this . aggregateUndoStop = aggregateUndoStop ;
98
99
}
99
100
@@ -260,7 +261,7 @@ export class DocumentFormatterFeature implements IFeature {
260
261
private documentFormattingEditProvider : PSDocumentFormattingEditProvider ;
261
262
262
263
constructor ( ) {
263
- this . documentFormattingEditProvider = new PSDocumentFormattingEditProvider ( true ) ;
264
+ this . documentFormattingEditProvider = new PSDocumentFormattingEditProvider ( ) ;
264
265
this . formattingEditProvider = vscode . languages . registerDocumentFormattingEditProvider (
265
266
"powershell" ,
266
267
this . documentFormattingEditProvider ) ;
You can’t perform that action at this time.
0 commit comments