Skip to content

PowerShell parsing doesn't understand referencing properties by using quotes #8970

@CodeCyclone

Description

@CodeCyclone
  • VSCode Version: Code 1.3.0 (e724f26, 2016-07-07T16:56:12.476Z)
  • OS Version: Windows_NT ia32 10.0.14372

Steps to Reproduce:

  1. Open a new tab
  2. Change the language mode to PowerShell
  3. Paste in this text:
    Write-Host -Object 'Looks good';
    $xml = [xml]'text';
    $xml.root.'dash-it-all';
    Write-Host -Object 'Looks bad'

Expected: Syntax parsing continues to work
Actual: Most things are now being treated as a string after the $x.'something-something' line

This impacts any referencing of properties where you need to use quotes which is pretty common for XML or JSON references.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions