Description
From @msftrncs on June 29, 2018 18:47
Issue Type: Bug
Enter the following where file path intellisense is permitted (I am working in a PowerShell file with the PowerShell extension, and could not determine if VS Code or PowerShell extension provide this functionality), on a new line:
$VARIABLE =
Then start with a single or double quote (I tried both), which automatically includes the closing quote on the other side of the cursor, and then start typing a valid file path (in my case, a network path '\server\share\folder'. Intellisense starts offering completion suggestions. Pressing TAB or ENTER to accept one of the suggestions cause the suggestion to be entered in to the document, and the cursor moves to the other side of the closing quote, preventing further traversal of the file hierarchy.
I could not find any documentation that suggested that file path intellisense worked differently (I couldn't find any documentation stating that VS Code had built in file path intellisense). The same effect did not happen if I manually triggered intellisense with a variable name (pressing CTRL-SPACE after a $ while just inside the closing quote). I would think that the behavior should be consistent, regardless of even which type of file system object I selected. The cursor should remain in front of the closing quote after the selection.
VS Code version: Code 1.24.1 (24f62626b222e9a8313213fb64b10d741a326288, 2018-06-13T17:51:32.889Z)
OS version: Windows_NT x64 10.0.17134
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz (8 x 2794) |
GPU Status | 2d_canvas: unavailable_software flash_3d: unavailable_software flash_stage3d: unavailable_software flash_stage3d_baseline: unavailable_software gpu_compositing: unavailable_software multiple_raster_threads: unavailable_off native_gpu_memory_buffers: disabled_software rasterization: unavailable_software video_decode: unavailable_software video_encode: unavailable_software vpx_decode: unavailable_software webgl: unavailable_off webgl2: unavailable_off |
Memory (System) | 15.91GB (10.30GB free) |
Process Argv | C:\Program Files\Microsoft VS Code\Code.exe |
Screen Reader | no |
VM | 0% |
Extensions (3)
Extension | Author (truncated) | Version |
---|---|---|
mssql | ms- | 1.4.0 |
csharp | ms- | 1.15.2 |
PowerShell | ms- | 1.7.0 |
Copied from original issue: microsoft/vscode#53353