We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d187b commit e47b69aCopy full SHA for e47b69a
src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1
@@ -38,11 +38,9 @@ function Global:Prompt() {
38
# Sanitize the command line to ensure it can get transferred to the terminal and can be parsed
39
# correctly. This isn't entirely safe but good for most cases, it's important for the Pt parameter
40
# to only be composed of _printable_ characters as per the spec.
41
- if ($LastHistoryEntry.CommandLine)
42
- {
+ if ($LastHistoryEntry.CommandLine) {
43
$CommandLine = $LastHistoryEntry.CommandLine
44
- } else
45
+ } else {
46
$CommandLine = ""
47
}
48
$Result += Set-Serialized($CommandLine)
0 commit comments