From 3ff7361bbe43ea9bec2ccf67fc4ca216d79770c2 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Thu, 29 Aug 2024 05:40:00 -0700 Subject: [PATCH] Add missing escape Fixes #222237 --- .../contrib/terminal/browser/media/shellIntegration.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1 b/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1 index e3a7a149174..0be7b8aa985 100644 --- a/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1 +++ b/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1 @@ -389,7 +389,7 @@ function Send-Completions { # Add `../ relative to the top completion $firstCompletion = $completions.CompletionMatches[0] if ($firstCompletion.CompletionText.StartsWith("..$([System.IO.Path]::DirectorySeparatorChar)")) { - if ($completionPrefix -match "(\.\.$([System.IO.Path]::DirectorySeparatorChar))+") { + if ($completionPrefix -match "(\.\.\$([System.IO.Path]::DirectorySeparatorChar))+") { $parentDir = "$($matches[0])..$([System.IO.Path]::DirectorySeparatorChar)" $currentPath = Split-Path -Parent $firstCompletion.ToolTip try {