Skip to content

Commit 9dd216c

Browse files
author
Kapil Borle
committed
Rename PSUseWhitespace rule to PSUseConsistentWhitespace
1 parent 4aa3022 commit 9dd216c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/DocumentFormatter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class PSDocumentFormattingEditProvider implements DocumentFormattingEditProvider
139139
private readonly ruleOrder: string[] = [
140140
"PSPlaceCloseBrace",
141141
"PSPlaceOpenBrace",
142-
"PSUseWhitespace",
142+
"PSUseConsistentWhitespace",
143143
"PSUseConsistentIndentation"];
144144

145145
// Allows edits to be undone and redone is a single step.
@@ -334,7 +334,7 @@ class PSDocumentFormattingEditProvider implements DocumentFormattingEditProvider
334334
ruleSettings["IndentationSize"] = vscode.workspace.getConfiguration("editor").get<number>("tabSize");
335335
break;
336336

337-
case "PSUseWhitespace":
337+
case "PSUseConsistentWhitespace":
338338
ruleSettings["CheckOpenBrace"] = psSettings.codeFormatting.whitespaceBeforeOpenBrace;
339339
ruleSettings["CheckOpenParen"] = psSettings.codeFormatting.whitespaceBeforeOpenParen;
340340
ruleSettings["CheckOperator"] = psSettings.codeFormatting.whitespaceAroundOperator;

0 commit comments

Comments
 (0)