Skip to content

PowerShell tab completion doesn't work for Write cmdlets when variable is in quotes #885

@ramya-rao-a

Description

@ramya-rao-a

From @powershellpr0mpt on June 15, 2017 12:47

  • VSCode Version: Code 1.13.1 (379d2efb5539b09112c793d3d9a413017d736f89, 2017-06-14T18:21:47.485Z)
  • OS Version: Windows_NT ia32 10.0.15063
  • Extensions:
Extension Author Version
PowerShell ms-vscode 1.3.2

Steps to Reproduce:

  1. Create a variable with
  2. Type any of the PowerShell Write-cmdlets [Write-Output/Host/Warning/Error] and open quotes "
  3. Type $ to reference a variable and try tab completion.

Expected behaviour is VSCode simply providing a list of available variable, similar to when no quotes are used.

See attached .gif for easily reproduced example
vscode_write_variable

Reproduction Code:

$test = 1
Write-Output "$t

and try tab completing the variable

Copied from original issue: microsoft/vscode#28814

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions