EditorSyntax icon indicating copy to clipboard operation
EditorSyntax copied to clipboard

Enumeration support

Open daviwil opened this issue 8 years ago • 12 comments
trafficstars

From @Satak on November 24, 2015 7:49

The whole enumeration / enum keyword feels like it's not implemented to have a support for it. Doesn't highlight the keyword or it's content and doesn't offer any snippets.

Copied from original issue: PowerShell/vscode-powershell#26

daviwil avatar Dec 19 '16 23:12 daviwil

From @Satak on November 24, 2015 17:52

You can see that enum keyword, the name or it's content is not color coded image

daviwil avatar Dec 19 '16 23:12 daviwil

This seems to be a problem with the TextMate bundle we're using from Sublime Text. GitHub also uses it, this is how the same code gets highlighted here:

enum test
{
    listItem1
    listItem2
    listItem3
}

Looks like there's already a bug filed against the Sublime Text repo for this:

https://github.com/SublimeText/PowerShell/issues/124

@Jaykul, any interest in trying to fix that one?

daviwil avatar Dec 19 '16 23:12 daviwil

From @adbertram on December 14, 2016 16:30

I just ran into this today as well. It would be nice to at least get syntax coloring for enums.

daviwil avatar Dec 19 '16 23:12 daviwil

From @rkeithhill on December 19, 2016 0:51

Shouldn't this be moved to http://github.com/powershell/editorsyntax and closed here?

daviwil avatar Dec 19 '16 23:12 daviwil

Yep!

daviwil avatar Dec 19 '16 23:12 daviwil

@omniomi Could you have a look at enumerator coloring in spare time? (#29)

kborowinski avatar May 07 '18 20:05 kborowinski

Any update on this, we're 3 years later now #curious

JosKrause avatar Aug 18 '19 16:08 JosKrause

@JosKrause, have you a chance to look at PR #155? In that PR I have a more complete class and enum scoping. I could probably try to separate that out to a new PR. If you have a chance, also look at PR #156, it demonstrates a more elaborate statement syntax based scoping.

msftrncs avatar Aug 19 '19 05:08 msftrncs

Sure would be nice to treat "enum" as a real thing... finally.

edhaack avatar Mar 25 '20 00:03 edhaack

Soon this turns 5 years 😁

Good things come to those who wait

Satak avatar Mar 25 '20 16:03 Satak

This should finally fix this issue: https://github.com/PowerShell/vscode-powershell/releases/tag/v2020.7.0-preview

Satak avatar Jul 31 '20 05:07 Satak

Looks like there's still no fix for this, 6 years later...

brandonavant avatar Aug 12 '22 19:08 brandonavant