File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 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."
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
3434export 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}
You can’t perform that action at this time.
0 commit comments