-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[powershell] configuration
and node
keywords aren't highlighted
#3342
Comments
This would be a great contribution! Would you like to give it a try and submit a PR? |
@joaomoreno I don't think I'll be very efficient at fixing it, since I'm not on the dev team. It would take me quite a while to research the specifics about implementing syntax highlighting for VS Code, and then track down the problem. My guess is that the problem lies somewhere here: https://github.com/Microsoft/vscode/blob/master/extensions/powershell/syntaxes/PowershellSyntax.tmLanguage#L525 |
FYI @daviwil |
Interesting. From your code snippet, it appears that ping @aeschli |
I talked to Keith Hill on Skype this morning, and he pointed out that this bug is resolved in an alpha build, that I don't currently have access to. I'll close this ticket unless things change after the February release. Cheers, |
@joaomoreno Actually, you were right. I just tested out changing the theme, and sure enough, it is colored. I never changed the them from the default (didn't even know this was available), so maybe the theme needs to be updated? Re-opening issue. Despite the naming, my "default" theme was actually |
Awesome. @aeschli, what can be done about this? |
configuration
and node
keywords aren't highlighted
I have to read more on what's the expected use of |
Actually, this was intentional, we did not want to change the selected theme behind the user's back. Consider users that like the less colorful theme, they would not appreciate if we upgrade them automatically. However, given this issue I wonder whether we should provide some more active guidance to users to upgrade to the '+' theme (they obviously do not read the release notes 😞). One idea would be a 'once message' (shown only once) to a user that uses the Dark, Light theme that there now is a Dark+/Light+. The message could provide a command to change the theme to the corresponding '+' one. |
@aeschli Thanks for the analysis. I'm not sure why the @egamma Good idea to mention this in the release notes, somehow. In fact, I didn't even realize that release notes were available. Normally I love reading them. Perhaps we could do something to encourage reading release notes, like showing them in the editor after an upgrade or new installation of VS Code? |
@pcgeek86 the release notes are here https://code.visualstudio.com/Updates 😄 and whenever you get an auto update there is message box with a button to open the release notes. The fact that you never noticed them makes me thinking... |
@egamma This might be a psychology thing. I guess when the update notification comes up, users can get a bit excited about new toys, and the obvious thing to do is to hit that update button asap. Maybe it would be a good idea to display the release notes notification again once the user starts the updated VSCode for the first time. E.g. "Visual Studio Code was recently updated. Do you want to read release notes now", offering options like "Release Notes", "Not now", "Do not ask again". |
@bgse @egamma omg yes, you're spot on with that analysis @bgse. I literally do that, especially because of how fast the VS Code update process is!!! 😄 I still like my idea of displaying the release notes after an upgrade, or alternatively, showing just the release notes button / notification as @bgse suggested. 😄 😄 Maybe have an option to disable it in the VS Code config? |
@bgse and @pcgeek86 thanks for your insights, we spend some real time on the release notes, it would be a pity if they are not getting read. // @joaomoreno |
@joaomoreno Thanks for filing that. |
@daviwil David, ok if we move this issue to https://github.com/PowerShell/vscode-powershell ? Once fixed we're happy to update our powershell text mate grammar. |
configuration
and node
keywords aren't highlightedconfiguration
and node
keywords aren't highlighted
We're actually about to start maintaining the official PowerShell TextMate grammar in its own repo so you'll be able to move all PowerShell grammar bugs there. I'll see about getting that repo created today and I'll create a bug there to track this issue. |
This was fixed in the VS Code 1.3, let us know if you see any issues with these keywords in the future. Thanks! |
|
It was fixed in our new syntax definition in VS Code 1.3 but we had to pull it back out in 1.4 due to other bugs that were severely impacting user experience. We're going to start fixing up the new syntax definition over at https://github.com/PowerShell/EditorSyntax and hopefully bring it back within the next couple of VS Code releases. |
On Mac OS X, the
configuration
keyword isn't being syntax highlighted for the PowerShell language. Is this an easy fix?Same goes for
node
keyword.Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell
The text was updated successfully, but these errors were encountered: