Repository navigation
Commit 4ee9925
Redesign the Command Explorer around modules and lazy loading
The Command Explorer fetched the full command table up front (names, modules,
and parameter metadata for everything), which took minutes to populate and
showed a flat, hard-to-scan list. Rework it into a lazy, module-grouped tree:
- Top-level nodes are modules (with version), expanded on demand; their
commands are fetched per module with `excludeParameters` so only names and
modules cross the wire.
- Module-less commands are collected under a neutral "Functions & Scripts"
node with a folder icon, and the request sets `excludeDefaultFunctions` so
PowerShell's default-session plumbing doesn't clutter it.
- Hovering a module shows its metadata via the new `powerShell/getModule`
request, cached so repeated hovers don't re-fetch.
- The inline Show Help / Insert command actions are gated to `viewItem ==
command` so they no longer appear on module nodes.
Default the Command Explorer to visible. Because its default now equals the
value the ISE profile sets, the ISE compatibility tests could no longer
observe a revert by inequality; guard those assertions with
`revertIsObservable`, which skips settings whose default already matches the
ISE value.
Drafted by Copilot (Claude Opus 4.8).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d1faccf commit 4ee9925
3 files changed
Lines changed: 296 additions & 57 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | | - | |
| 758 | + | |
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
| |||
0 commit comments