diff --git a/modules.json b/modules.json index 1053a9e13..488d74b74 100644 --- a/modules.json +++ b/modules.json @@ -1,6 +1,6 @@ { "PSScriptAnalyzer": { - "Version": "1.20.0" + "Version": "1.21.0" }, "Plaster": { "Version": "1.1.3" diff --git a/src/PowerShellEditorServices/Services/Workspace/LanguageServerSettings.cs b/src/PowerShellEditorServices/Services/Workspace/LanguageServerSettings.cs index 833b6a881..e417d7b92 100644 --- a/src/PowerShellEditorServices/Services/Workspace/LanguageServerSettings.cs +++ b/src/PowerShellEditorServices/Services/Workspace/LanguageServerSettings.cs @@ -191,6 +191,7 @@ public CodeFormattingSettings(CodeFormattingSettings codeFormattingSettings) public bool AddWhitespaceAroundPipe { get; set; } public bool AutoCorrectAliases { get; set; } + public bool AvoidSemicolonsAsLineTerminators { get; set; } public bool UseConstantStrings { get; set; } public CodeFormattingPreset Preset { get; set; } public bool OpenBraceOnSameLine { get; set; } @@ -312,6 +313,12 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces) { "Enable", UseConstantStrings } } }, + { + "PSAvoidSemicolonsAsLineTerminators", + new Hashtable { + { "Enable", AvoidSemicolonsAsLineTerminators } + } + }, }; if (AutoCorrectAliases)