PowerShell/PowerShellEditorServices

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

fflaten opened this issue · 1 comments

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

function
MyFunc123 {
    'some code'
}

MyFunc123
  • Select the last line and press F12
  • Find MyFunc123 in symbol search
  • Click in outline

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

I think fixed by #1984