Skip to content

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

Closed

Description

@dreadris
  • 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.

Activity

  1. changed the title [-]Line comment block not recognized in PowerShell when in attribute definition scope[/-] [+][powershell] Line comment block not recognized in PowerShell when in attribute definition scope[/+] on Jul 13, 2016
  2. aeschli commented on Feb 9, 2018

    @aeschli
    Contributor

    This issue was moved to PowerShell/EditorSyntax#64

  3. locked and limited conversation to collaborators on Mar 26, 2018
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

    languages-basic

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions