I have created some Powershell Classes. They look like this:
Class UISwitcher {
[NotesClientSwitcher]$ncs
$objForm
$objMessagebox
[PSCustomObject]$objVersion
[PSCustomObject]$objInstance
[PSCustomObject]$objData
$OKButton
# Default constructor
UISwitcher() {
$this.ncs = New-Object -TypeName NotesClientSwitcher
}
[void]StartSwitcher() {
$this.ncs.GetAvailableDirectories()
$this.CreateWindow()
$this.CreateObjects()
$this.ValidateForm()
$this.ShowWindow()
}
}
I try to edit them in Visual Studio Code 1.52.1 (user setup) and it works (autocomplete and everything). BUT: The outline view only shows the functions in that file and NOT the classes and their methods... this makes navigation quite cumbersome.
Are there any tricks or settings to make Visual Studio Code recognize classes in Powershell?
The setting "Features - Explorer - Outline: Show Classes" is enabled, just in case you wonder...