Skip to content

Commit d74d369

Browse files
author
Kapil Borle
committed
Fix test failures
The tests were failing because the LanguageServerSettingsWrapper class was not gettings initialized propertly in LanguageServerTests.SendConfigurationRequest method.
1 parent 7fc858b commit d74d369

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/PowerShellEditorServices.Protocol/Server/LanguageServerSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class LanguageServerSettings
2222
public LanguageServerSettings()
2323
{
2424
this.ScriptAnalysis = new ScriptAnalysisSettings();
25+
this.CodeFormatting = new CodeFormattingSettings();
2526
}
2627

2728
public void Update(

test/PowerShellEditorServices.Test.Host/LanguageServerTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,8 @@ await this.languageServiceClient.SendEvent(
879879
ScriptAnalysis = new ScriptAnalysisSettings
880880
{
881881
Enable = false
882-
}
882+
},
883+
CodeFormatting = new CodeFormattingSettings()
883884
}
884885
}
885886
});

0 commit comments

Comments
 (0)