Closed
Description
System Details
- Operating system name and version: Windows 7 Enterprise SP1
- VS Code version: 1.13.0
- PowerShell extension version: 1.3.2
- Output from
$PSVersionTable
:
PS E:\> code -v
1.13.0
376c52b955428d205459bea6619fc161fc8faacf
PS E:\> $pseditor.EditorServicesVersion
PS E:\> code --list-extensions --show-versions
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
PS E:\> $PSVersionTable
Name Value
---- -----
PSVersion 5.0.10586.117
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.10586.117
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
references not found when used in class
As visible in the following screenshot, there is "1 reference" found for the function Get-ResultStateBGClass
- this one usage is also visiable right below in the function Get-ResultStateAlertBGClass
:
But, in the same file, some lines down there's a class which also uses the function Get-ResultStateBGClass
within a function:
(so there should be two references for Get-ResultStateBGClass
...)
This is reproducable with this very easy setup:
function Get-Foo {
return "foo"
}
class Bar {
[string] BarGetFoo {
$var = Get-Foo
}
}