Skip to content

Commit 44d7122

Browse files
author
Kapil Borle
committed
Change codeformatting to codeFormatting
1 parent 44fc30c commit 44d7122

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,12 @@
271271
"default": false,
272272
"description": "Launches the language service with the /waitForDebugger flag to force it to wait for a .NET debugger to attach before proceeding."
273273
},
274-
"powershell.codeformatting.openBraceOnSameLine":{
274+
"powershell.codeFormatting.openBraceOnSameLine":{
275275
"type":"boolean",
276276
"default": true,
277277
"description": "Places open brace on the same line as its associated statement."
278278
},
279-
"powershell.codeformatting.newLineAfterOpenBrace":{
279+
"powershell.codeFormatting.newLineAfterOpenBrace":{
280280
"type":"boolean",
281281
"default": true,
282282
"description": "A new line must follow an open brace."

src/features/DocumentFormatter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ class PSDocumentFormattingEditProvider implements DocumentFormattingEditProvider
225225
case "PSPlaceOpenBrace":
226226
ruleProperty = `${rule} = @{
227227
Enable = \$true
228-
OnSameLine = \$${settings.codeformatting.openBraceOnSameLine}
229-
NewLineAfter = \$${settings.codeformatting.newLineAfterOpenBrace}
228+
OnSameLine = \$${settings.codeFormatting.openBraceOnSameLine}
229+
NewLineAfter = \$${settings.codeFormatting.newLineAfterOpenBrace}
230230
}`;
231231
break;
232232

src/settings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface ISettings {
2828
enableProfileLoading?: boolean;
2929
scriptAnalysis?: IScriptAnalysisSettings;
3030
developer?: IDeveloperSettings;
31-
codeformatting?: ICodeFormattingSettings;
31+
codeFormatting?: ICodeFormattingSettings;
3232
}
3333

3434
export function load(myPluginId: string): ISettings {
@@ -56,6 +56,6 @@ export function load(myPluginId: string): ISettings {
5656
enableProfileLoading: configuration.get<boolean>("enableProfileLoading", false),
5757
scriptAnalysis: configuration.get<IScriptAnalysisSettings>("scriptAnalysis", defaultScriptAnalysisSettings),
5858
developer: configuration.get<IDeveloperSettings>("developer", defaultDeveloperSettings),
59-
codeformatting: configuration.get<ICodeFormattingSettings>("codeformatting", defaultCodeFormattingSettings)
59+
codeFormatting: configuration.get<ICodeFormattingSettings>("codeFormatting", defaultCodeFormattingSettings)
6060
};
6161
}

0 commit comments

Comments
 (0)