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
Implement document and workspace symbol providers for classes #3
This requires an implementation of the DocumentSymbolProvider and WorkspaceSymbolProvider interfaces. Relevant code will need to be added to PowerShell Editor Services to support this behavior.
Reacted by Chris Hunt, Brian Ojeda, Staffan Gustafsson, Micah Rairdon, Christian Gnüchtel, Michael Frank, Carl Morris, bretboss, Lev Dimov, BeauDekker and 5 more
changed the title [-]Implement document and workspace symbol providers[/-][+]Implement document and workspace symbol providers for classes[/+]on Sep 16, 2016
@lesterm5150 it's definitely noted as needed but the current highest priority is getting the extension stabilized with the new revamped internal engine to the point it's good for a stable release.
Not sure if this been reported, but when editing a script that contains classes, the breadcrumb at the top of the script does not work for any class/method/enum.
Since I use classes, this is very frustrating :(
Andy Jordan (@andschwa) working great! I have about as complex of a class as it gets in ModuleFast, and methods aren't showing up for some reason for the most part, I think maybe because I implement IComparable and it's only picking up those base methods like Equals?
Justin Grote (@JustinGrote) I know it's confusing, but those three screenshots all look like completions which are handled via the PowerShell completion engine, so perhaps an issue there? After you've typed out the method name (with at least () so the PowerShell parser knows it's a method invocation) can you do "go-to definition" on it? And if you pull up the Outline view, do you see all your methods?
Yeah there's typically nothing we can do in the extension to make new completions appear.
That said, you might be hitting PowerShell/PowerShellEditorServices#1810 which is our problem. If it shows up after a Esc then Ctrl + Space then it's ours. If not, then you'd want to open in PowerShell/PowerShell
Activity
[-]Add document and workspace symbol providers[/-][+]Implement document and workspace symbol providers[/+]daviwil commentedon Nov 9, 2015
Assigning Keith since this is for the feature he was interested in helping with. I'll provide more details privately.
sgtoj commentedon Sep 16, 2016
Would this allow for symbols search and goto for PS 5.0's classes and enums?
daviwil commentedon Sep 16, 2016
Yep, that's something we haven't finished yet. Seems like you had commented on the Editor Services issue for this a while back:
PowerShell/PowerShellEditorServices#14
Sorry about that :/ I'll see if I can get some help to get that implemented for the 0.8.0 release!
[-]Implement document and workspace symbol providers[/-][+]Implement document and workspace symbol providers for classes[/+]22 remaining items
NonulliLester commentedon Mar 14, 2022
Is this planned or being worked on?
JustinGrote commentedon Mar 14, 2022
@lesterm5150 it's definitely noted as needed but the current highest priority is getting the extension stabilized with the new revamped internal engine to the point it's good for a stable release.
Golosok commentedon Nov 28, 2022
Any update or ETA?
DougChandler commentedon Jan 27, 2023
Not sure if this been reported, but when editing a script that contains classes, the breadcrumb at the top of the script does not work for any class/method/enum.
Since I use classes, this is very frustrating :(
mpetr commentedon Jan 27, 2023
as an heavy user of classes in all bigger projects, the ETA (or knowing any alternative approach) would be nice
andyleejordan commentedon Jan 27, 2023
This is landing in the next preview!!!
andyleejordan commentedon Feb 2, 2023
Fixed by PowerShell/PowerShellEditorServices#1984
JustinGrote commentedon Feb 7, 2023
Andy Jordan (@andschwa) working great! I have about as complex of a class as it gets in ModuleFast, and methods aren't showing up for some reason for the most part, I think maybe because I implement IComparable and it's only picking up those base methods like
Equals?https://github.com/JustinGrote/ModuleFast/blob/b531aa9ee95eb5941a064c9c0d0f2892e298db15/ModuleFast.psm1#L608-L620
I have less complex classes that work fine and show all methods like

NuGetRangeLet me know if this needs a new issue.
andyleejordan commentedon Feb 7, 2023
Justin Grote (@JustinGrote) I know it's confusing, but those three screenshots all look like completions which are handled via the PowerShell completion engine, so perhaps an issue there? After you've typed out the method name (with at least
()so the PowerShell parser knows it's a method invocation) can you do "go-to definition" on it? And if you pull up the Outline view, do you see all your methods?SeeminglyScience commentedon Feb 7, 2023
Yeah there's typically nothing we can do in the extension to make new completions appear.
That said, you might be hitting PowerShell/PowerShellEditorServices#1810 which is our problem. If it shows up after a Esc then Ctrl + Space then it's ours. If not, then you'd want to open in PowerShell/PowerShell
JustinGrote commentedon Feb 7, 2023
Andy Jordan (@andschwa) Patrick Meinecke (@SeeminglyScience) oops I conflated two different things, you're right! Sorry about that, doing a quick symbol search and I'm seeing what I expect to see as well. Thanks!