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
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