Skip to content

Commit e47b69a

Browse files
committed
Revert formatting changes in shell integration ps1
1 parent 45d187b commit e47b69a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,9 @@ function Global:Prompt() {
3838
# Sanitize the command line to ensure it can get transferred to the terminal and can be parsed
3939
# correctly. This isn't entirely safe but good for most cases, it's important for the Pt parameter
4040
# to only be composed of _printable_ characters as per the spec.
41-
if ($LastHistoryEntry.CommandLine)
42-
{
41+
if ($LastHistoryEntry.CommandLine) {
4342
$CommandLine = $LastHistoryEntry.CommandLine
44-
} else
45-
{
43+
} else {
4644
$CommandLine = ""
4745
}
4846
$Result += Set-Serialized($CommandLine)

0 commit comments

Comments
 (0)