You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
Summary
There is the #Requires syntax highlighting bug. If there is some module with letters and numbers in module name, add-in highlights part with first block of letters and numbers and the rest chars highlight as a comment.
You can reproduce the issue if add the code below to ps1 file
#Requires Microsoft365DSC
Will be highlighted only the part of the module name. All characters follow after 365 will be highlighted as comment.
The funny thing, is that the module name highlighted in the same manner on github as well 😁
PowerShell Version
Name Value---- -----PSVersion 7.1.3PSEdition CoreGitCommitId 7.1.3OS Microsoft Windows 10.0.19042Platform Win32NTPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}PSRemotingProtocolVersion 2.3SerializationVersion 1.1.0.1WSManStackVersion 3.0
Prerequisites
Summary
There is the #Requires syntax highlighting bug. If there is some module with letters and numbers in module name, add-in highlights part with first block of letters and numbers and the rest chars highlight as a comment.
You can reproduce the issue if add the code below to ps1 file
#Requires Microsoft365DSC
Will be highlighted only the part of the module name. All characters follow after 365 will be highlighted as comment.
The funny thing, is that the module name highlighted in the same manner on github as well 😁
PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
You can reproduce the issue if add the code below to ps1 file
#Requires Microsoft365DSC
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: