Skip to content

Commit bbdf98d

Browse files
authored
Upgrade to PSSA 1.21.0 (#1916)
1 parent 721b0a0 commit bbdf98d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

modules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"PSScriptAnalyzer": {
3-
"Version": "1.20.0"
3+
"Version": "1.21.0"
44
},
55
"Plaster": {
66
"Version": "1.1.3"

src/PowerShellEditorServices/Services/Workspace/LanguageServerSettings.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public CodeFormattingSettings(CodeFormattingSettings codeFormattingSettings)
191191

192192
public bool AddWhitespaceAroundPipe { get; set; }
193193
public bool AutoCorrectAliases { get; set; }
194+
public bool AvoidSemicolonsAsLineTerminators { get; set; }
194195
public bool UseConstantStrings { get; set; }
195196
public CodeFormattingPreset Preset { get; set; }
196197
public bool OpenBraceOnSameLine { get; set; }
@@ -312,6 +313,12 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces)
312313
{ "Enable", UseConstantStrings }
313314
}
314315
},
316+
{
317+
"PSAvoidSemicolonsAsLineTerminators",
318+
new Hashtable {
319+
{ "Enable", AvoidSemicolonsAsLineTerminators }
320+
}
321+
},
315322
};
316323

317324
if (AutoCorrectAliases)

0 commit comments

Comments
 (0)