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
Copy / paste the following commands into the PowerShell Integrated Console, and paste the output here:
code -v
1.17.2
b813d12980308015bcd2b3a2f6efa5c810c33ba5
$pseditor.EditorServicesVersion
Major Minor Build Revision
----- ----- ----- --------
1 5 0 0
code --list-extensions --show-versions
[email protected]
$PSVersionTable
Name Value
---- -----
PSVersion 5.1.14409.1012
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1012
CLRVersion 4.0.30319.36392
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
Many of the standard features in 'Visual Studio Code' do not work with files containing PowerShell classes. e.g. syntax highlighting, Peek Definition, Rename (F2) etc. IntelliSense and PSScriptAnalyzer are working.
An example of Peek Definition not working when the method is part of a class:
An example of the same code working when converted to functions:
Not sure if this is a bug (i.e. the extension should already support classes) or an enhancement (it doesn't currently but could in a later version)!
The text was updated successfully, but these errors were encountered:
The problem here is that it's difficult to support classes AND PowerShell v3. @powercode has been working on adding this but I'm not quite sure on his status. Once we move to V2 of the extension which comes with PSReadLine, we will be able to support this with a smaller barrier.
System Details
$PSVersionTable
:Issue Description
Many of the standard features in 'Visual Studio Code' do not work with files containing PowerShell classes. e.g. syntax highlighting, Peek Definition, Rename (F2) etc. IntelliSense and PSScriptAnalyzer are working.
An example of Peek Definition not working when the method is part of a class:
An example of the same code working when converted to functions:
Not sure if this is a bug (i.e. the extension should already support classes) or an enhancement (it doesn't currently but could in a later version)!
The text was updated successfully, but these errors were encountered: