PowerShell / PowerShellEditorServices

A common platform for PowerShell development support in any editor or application!
MIT License
624 stars 215 forks source link

Outline, symbol search and go to definition should jump to symbol name #1905

Closed fflaten closed 1 year ago

fflaten commented 2 years ago

Prerequisites

Steps to reproduce

function
MyFunc123 {
    'some code'
}

MyFunc123

Expected behavior

Jumps to line 2 `MyFun123` like other languages like C# and TypeScript

Actual behavior

Jumps to `function`

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

2022.8.3 preview

Visuals

No response

andyleejordan commented 1 year ago

I think fixed by https://github.com/PowerShell/PowerShellEditorServices/pull/1984