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
{{ message }}
Repository navigation
Account for function and variable scope in language service features #16
changed the title [-]Use correct scope on variables and parameters for intellisense features[/-][+]Consider variable scope for language intelligence features[/+]on May 18, 2016
changed the title [-]Consider variable scope for language intelligence features[/-][+]Account for function and variable scope in language intelligence features[/+]on May 18, 2016
changed the title [-]Account for function and variable scope in language intelligence features[/-][+]Account for function and variable scope in language service features[/+]on May 18, 2016
functionmyDemo ($o) {
$o="second"
}
$o="first"$o# Go to definition here will go to first match -> reassignment on line 2
Update: Preview extension v2023.2.0 includes change from #1984 which now shows all definitions. Good enough? Matching scope is hard, so not sure if/when that will be fixed.
Resolved by #1990 (v3.8.1) — language features now strip scope qualifiers (VisitorUtils.GetUnqualifiedFunctionName), so scoped function/variable names resolve correctly. Closing as completed.
Activity
daviwil commentedon Nov 9, 2015
This requires similar logic to #28 so potentially both could be developed at the same time.
[-]Use correct scope on variables and parameters for intellisense features[/-][+]Consider variable scope for language intelligence features[/+][-]Consider variable scope for language intelligence features[/-][+]Account for function and variable scope in language intelligence features[/+][-]Account for function and variable scope in language intelligence features[/-][+]Account for function and variable scope in language service features[/+]Merge pull request PowerShell#16 from TylerLeonhardt/working-workspac…
fflaten commentedon Jan 15, 2023
Adding an example of this:
Update: Preview extension v2023.2.0 includes change from #1984 which now shows all definitions. Good enough? Matching scope is hard, so not sure if/when that will be fixed.
andyleejordan commentedon Jun 15, 2026
Resolved by #1990 (v3.8.1) — language features now strip scope qualifiers (
VisitorUtils.GetUnqualifiedFunctionName), so scoped function/variable names resolve correctly. Closing as completed.Drafted by GitHub Copilot (Claude Opus 4.8) at Andy Jordan (@andyleejordan)'s request.