Skip to content

Commit cc68bf9

Browse files
Kapil Borledaviwil
Kapil Borle
authored andcommitted
Update CodeFormattingPreset type
1 parent b82219b commit cc68bf9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,10 @@
416416
"type":"string",
417417
"enum": [
418418
"Custom",
419-
"KR_Stroustrup",
420-
"KR_OTBS",
419+
"OTBS",
421420
"Allman"
422421
],
423-
"default": "KR-Stroustrup",
422+
"default": "KR_Stroustrup",
424423
"description": "Sets the codeformatting options to follow the given indent style in a way that is compatible with PowerShell syntax. For more information about the brace styles please refer to https://github.com/PoshCode/PowerShellPracticeAndStyle/issues/81."
425424
},
426425
"powershell.codeFormatting.openBraceOnSameLine": {

src/settings.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ import utils = require('./utils');
99

1010
enum CodeFormattingPreset {
1111
Custom,
12-
KR_Stroustrup,
13-
KR_OTBS,
12+
OTBS,
1413
Allman
1514
}
1615

@@ -77,7 +76,7 @@ export function load(): ISettings {
7776
};
7877

7978
let defaultCodeFormattingSettings: ICodeFormattingSettings = {
80-
preset: CodeFormattingPreset.
79+
preset: CodeFormattingPreset.Custom,
8180
openBraceOnSameLine: true,
8281
newLineAfterOpenBrace: true,
8382
newLineAfterCloseBrace: true,

0 commit comments

Comments
 (0)