Skip to content

Commit 6778c25

Browse files
Kapil Borledaviwil
authored andcommitted
Honor the insertSpaces parameter for formatting
1 parent e98a8b9 commit 6778c25

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/PowerShellEditorServices.Protocol/Server/LanguageServerSettings.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void Update(
9696
}
9797

9898
/// <summary>
99-
/// Code formatting presets.
99+
/// Code formatting presets.
100100
/// See https://en.wikipedia.org/wiki/Indent_style for details on indent and brace styles.
101101
/// </summary>
102102
public enum CodeFormattingPreset
@@ -227,7 +227,8 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces)
227227
}},
228228
{"PSUseConsistentIndentation", new Hashtable {
229229
{"Enable", true},
230-
{"IndentationSize", tabSize}
230+
{"IndentationSize", tabSize},
231+
{"Kind", insertSpaces ? "space" : "tab"}
231232
}},
232233
{"PSUseConsistentWhitespace", new Hashtable {
233234
{"Enable", true},

0 commit comments

Comments
 (0)