Skip to content

[powershell] Line comment block not recognized in PowerShell when in attribute definition scope #64

Closed

Description

From dreadris on July 4, 2016 14:23

  • VSCode Version: 1.2.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Create a powershell script file (ie. test.ps1)
  2. Open the script in vs code
  3. Paste the following:
    param( [ValidateScript( { if (Test-Path $_) { $True } else { Throw "Path:"$_" does not exist" } } )] [string]$rootPath = "./" )
  4. Insert the # sign after ValidateScript( - the text style won't be changed to indicate the commented block.

Copied from original issue: microsoft/vscode#8730

Activity

  1. omniomi commented on May 21, 2018

    @omniomi
    Contributor

    Fixed by #94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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