Skip to content

Commit 3ff7361

Browse files
committed
Add missing escape
Fixes microsoft#222237
1 parent abf9cb9 commit 3ff7361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ function Send-Completions {
389389
# Add `../ relative to the top completion
390390
$firstCompletion = $completions.CompletionMatches[0]
391391
if ($firstCompletion.CompletionText.StartsWith("..$([System.IO.Path]::DirectorySeparatorChar)")) {
392-
if ($completionPrefix -match "(\.\.$([System.IO.Path]::DirectorySeparatorChar))+") {
392+
if ($completionPrefix -match "(\.\.\$([System.IO.Path]::DirectorySeparatorChar))+") {
393393
$parentDir = "$($matches[0])..$([System.IO.Path]::DirectorySeparatorChar)"
394394
$currentPath = Split-Path -Parent $firstCompletion.ToolTip
395395
try {

0 commit comments

Comments
 (0)