Vscode-powershell: Tab Completion removes backslash in UNC Path

Created on 15 Apr 2017  路  8Comments  路  Source: PowerShell/vscode-powershell

System Details

  • Operating system name and version: Windows 10 v1607, build 14393.970
  • VS Code version: 1.11.2
  • PowerShell extension version: 0.11.2
  • Output from $PSVersionTable:

PSVersion 5.1.14393.953
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.953
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Issue Description

Tab completion is removing the initial backslash from UNC Paths.
For instance:
\\CorpServer\ becomes \CorpServer\ when one of the subdirectories is selected.
This occurs at every level, not just at the root of the server/share.

Area-IntelliSense Issue-Bug

Most helpful comment

Wow, that's weird, I'll take a look!

All 8 comments

Wow, that's weird, I'll take a look!

I just recently learned that I could embed GIFs, and grabbed a copy of LICEcap, so I've decided to attach a demonstration, so that others can see what's happening.

uncissue

I hadn't noticed this behavior before, but I can report that I can duplicate the issue with:
VSCode: 1.12.0
PowerShell Extension: 1.0.0

Name Value
---- -----
PSVersion 5.1.14393.1066
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.1066
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

This seems to be fixed in the latest Visual Studio Code Insiders build, can you try it there and let me know if it's resolved for you?

@daviwil
I checked in Insiders, and you are correct - it appears to be working as expected! :)

Great, thanks for confirming! I'll keep this issue open until that fix comes to the stable VS Code release.

Great news, @daviwil! As of 1.13.0, this behavior seems to have been corrected! :)

That's great, thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings