Skip to content

Commit 10fa9d0

Browse files
author
Kapil Borle
committed
Temporarily disable CheckSeparator formatting option
In most cases the CheckSeparator feature works but it fails in one particular case. If a command element is composed of a list, e.g. 'gci tmp1,tmp2', the rule will fail to take into account that 'tmp1,tmp2' are part of a command element and will naively put a whitespace after the comma. This will break the command. Hence we temporarily disable the switch by default till we fix the issue.
1 parent 0072d5a commit 10fa9d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/features/DocumentFormatter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ class PSDocumentFormattingEditProvider implements DocumentFormattingEditProvider
338338
ruleSettings["CheckOpenBrace"] = psSettings.codeFormatting.whitespaceBeforeOpenBrace;
339339
ruleSettings["CheckOpenParen"] = psSettings.codeFormatting.whitespaceBeforeOpenParen;
340340
ruleSettings["CheckOperator"] = psSettings.codeFormatting.whitespaceAroundOperator;
341-
ruleSettings["CheckSeparator"] = psSettings.codeFormatting.whitespaceAfterSeparator;
341+
// ruleSettings["CheckSeparator"] = psSettings.codeFormatting.whitespaceAfterSeparator;
342+
ruleSettings["CheckSeparator"] = false;
342343
break;
343344

344345
default:

0 commit comments

Comments
 (0)