[vscode-go] extension: support follow cursor and sorting in package outline

2 views
Skip to first unread message

Hongxiang Jiang (Gerrit)

unread,
May 14, 2026, 6:00:02 PM (2 days ago) May 14
to Aviral Garg, Gerrit Bot, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Carlos Amedee, golang...@luci-project-accounts.iam.gserviceaccount.com, Madeline Kalil, Gopher Robot, golang-co...@googlegroups.com

Hongxiang Jiang submitted the change

Change information

Commit message:
extension: support follow cursor and sorting in package outline

Package Outline now supports follow cursor, sort by name, and sort by
position, matching the controls available in Outline.

This change switches the Package Outline view to a TreeView so the active
symbol can be revealed as the cursor moves. It also adds view actions for
follow cursor and both sort modes, and keeps symbol ordering stable by
name or source position.

The cursor matching logic also handles receiver methods returned by
gopls.package_symbols, where methods may be grouped under a type without
being nested inside that type's source range.

Fixes golang/vscode-go#3998
Change-Id: I0ed9cc1526dd84bac44a29cec918b53465b81274
GitHub-Last-Rev: 6f9c67f1bb2c1d5bdae45307a8670b075d990e37
GitHub-Pull-Request: golang/vscode-go#4008
Reviewed-by: Madeline Kalil <mka...@google.com>
Reviewed-by: Hongxiang Jiang <hxj...@golang.org>
Reviewed-by: Carlos Amedee <car...@golang.org>
Files:
  • M docs/commands.md
  • M extension/package.json
  • M extension/src/goPackageOutline.ts
  • M extension/test/integration/goPackageOutline.test.ts
Change size: L
Delta: 4 files changed, 312 insertions(+), 53 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: vscode-go
Gerrit-Branch: master
Gerrit-Change-Id: I0ed9cc1526dd84bac44a29cec918b53465b81274
Gerrit-Change-Number: 761181
Gerrit-PatchSet: 6
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-Reviewer: Carlos Amedee <car...@golang.org>
Gerrit-Reviewer: Hongxiang Jiang <hxj...@golang.org>
Gerrit-Reviewer: Madeline Kalil <mka...@google.com>
Gerrit-CC: Aviral Garg <gargav...@gmail.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages