Skip to content

UNC Path autocompletion removes one leading slash, preventing further completions #2116

Closed
PowerShell/PowerShellEditorServices
#1044
@msftrncs

Description

@msftrncs

System Details

VS Code 1.36
PowerShell Extension: Preview 2019.05
PowerShell 6.2 or 7.0 preview 2

System Details Output

### VSCode version: 1.36.1 2213894ea0415ee8c85c5eea0d0ff81ecc191529 x64

### VSCode extensions:       
docsmsft.docs-markdown@0.2.12
donjayamanne.githistory@0.4.6
eamodio.gitlens@9.9.2
GitHub.vscode-pull-request-github@0.9.1
keroc.hex-fmt@1.0.0
ms-mssql.mssql@1.6.0
ms-vscode.csharp@1.21.0
ms-vscode.powershell@2019.5.0
ms-vscode.powershell-preview@2019.5.0
ms-vscode.Theme-TomorrowKit@0.1.4
ms-vscode.vscode-typescript-tslint-plugin@1.2.2
vscode.theme-monokai-less-dimmed@0.0.1
Serhioromano.vscode-st@9.9.9


### PSES version: 2.0.0.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      7.0.0-preview.2
PSEdition                      Core
GitCommitId                    7.0.0-preview.2
OS                             Microsoft Windows 10.0.18362
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Description

Attempting to complete a path to a directory on a UNC path, the leading slash keeps being removed by the completion.

'\\server\share\somefolder\'

Expected Behaviour

'\\server\share\somefolder\AdditionalFolder\'

Actual Behaviour

'\server\share\somefolder\AdditionalFolder\'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions