File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/vs/workbench/contrib/terminal/browser/media Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -388,9 +388,9 @@ function Send-Completions {
388
388
if ($completions.CompletionMatches.Count -gt 0 -and $completions.CompletionMatches.Where ({ $_.ResultType -eq 3 -or $_.ResultType -eq 4 })) {
389
389
# Add `../ relative to the top completion
390
390
$firstCompletion = $completions.CompletionMatches [0 ]
391
- if ($firstCompletion.CompletionText.StartsWith (' ../ ' )) {
392
- if ($completionPrefix -match ' (\.\.\/)+ ' ) {
393
- $parentDir = " $ ( $matches [0 ]) ../ "
391
+ if ($firstCompletion.CompletionText.StartsWith (" .. $ ( [ System.IO.Path ]::DirectorySeparatorChar ) " )) {
392
+ if ($completionPrefix -match " (\.\.$ ( [ System.IO.Path ]::DirectorySeparatorChar ) )+ " ) {
393
+ $parentDir = " $ ( $matches [0 ]) ..$ ( [ System.IO.Path ]::DirectorySeparatorChar ) "
394
394
$currentPath = Split-Path - Parent $firstCompletion.ToolTip
395
395
try {
396
396
$parentDirPath = Split-Path - Parent $currentPath
You can’t perform that action at this time.
0 commit comments