Skip to content

Improve syntax coloring definition to meet the standards of PowerShell ISE, Visual Studio #199

Closed

Description

@v-pavanp

I compare VSCode coloring with Visual studio with different themes and observed that the cmdlet, parameter name and values are not following correct pattern.
Actual:

  1. With Light (Visual Studio) and Dark+ (Default Dark) themes the PS comdlet , parameter and parameter value are displaying in the same color.

vslighttheme

  1. When multiple parameters are provide with the command then they are displaying in the different color.
    Exp: In the below screenshot you can see -class and -computer is displaying in different color and Win32_OperatingSystem and localhost are displaying in different color.
    image
    Expected: Cmdlet, parameter and value should be display in three different colors and should be consistent in the script file same like visual studio.
    image

Activity

  1. daviwil commented on May 23, 2016

    @daviwil
    Contributor

    Hey Pavan, the problems you see with VS Code's syntax highlighting for PowerShell come from the TextMate syntax definition we borrowed from Sublime Text which is based purely on regular expressions. We won't be able to keep 100% consistency with Visual Studio and the PowerShell ISE because VS Code does not allow us to implement a custom classifier based on the PowerShell parser.

    That said, we need to improve the syntax definition to be more consistent with what users expect. We've got a plan to take over maintenance of the TextMate syntax definition that we use so that we can improve the quality of its colorization, it just may take a little while before we get to it.

  2. added
    Issue-Enhancement
    on May 23, 2016
  3. added this to the milestone on May 23, 2016
  4. changed the title [-]Coloring format is messed up with different VScode theme for PS cmdlets, parameter name and value.[/-] [+]Improve syntax coloring definition to meet the standards of PowerShell ISE, Visual Studio[/+] on May 23, 2016
  5. gravejester commented on May 24, 2016

    @gravejester

    I'd love to help out with this one David Wilson (@daviwil).

  6. daviwil commented on May 24, 2016

    @daviwil
    Contributor

    That'd be fantastic! Would love some help on that. I need to create a GitHub repo for the common syntax coloring definition used across VS Code, Sublime Text and Atom. I'll get that started today.

  7. gravejester commented on May 24, 2016

    @gravejester

    Nice, let me know when you have it set up and I'll start taking a look at it. :)

  8. vors commented on May 24, 2016

    @vors
    Contributor

    Excellent, lets do it!
    For sublime side of things see SublimeText/PowerShell#148

  9. modified the milestone: on May 18, 2017
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

    Issue-Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions