Description
VSCode currently ships a language-configuration.json
for PowerShell with the following autoClosingPairs
:
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
{ "open": "\"", "close": "\"", "notIn": ["string"]},
{ "open": "'", "close": "'", "notIn": ["string", "comment"]},
["/**", " */"],
["<#", "#>"]
],
This pair ["/**", " */"],
is just flat out wrong for PowerShell. That is not any sort of valid language construct. Comments are either line-oriented, starting with #
or block-oriented <# #>
. Please remove ["/**", " */"],
from the file.
The block oriented pair is also a problem. It is unusual for folks to use PowerShell's block comments on a single line since we have #
for that. Second, VSCode should not auto-complete this inside a string or comment. Finally, when VSCode auto-completes <#
it breaks the PowerShell extension's help completion feature - see PowerShell/vscode-powershell#1228.
I recommend that the <##>
is removed as well.
cc @tylerl0706 @daviwil