Commit b8f340c
committed
feat: add Coder Ping Workspace command (#749)
Add a `coder.pingWorkspace` command that runs `coder ping <workspace>`
locally and streams output to a custom PTY terminal. This helps users
diagnose connection problems by showing latency, P2P diagnostics, and
DERP info in real-time.
The command supports three invocation modes:
- Command Palette: shows a workspace picker (filtered to running)
- Sidebar context menu: under a new "Diagnostics" submenu
- When connected: pings the current workspace automatically
Other changes:
- Extract `resolveCliEnv` to deduplicate CLI bootstrap boilerplate
- Parameterize `pickWorkspace` with filter/title options and fix
QuickPick disposal leak
- Encode workspace running status in tree item contextValue using a
tag-based format (e.g. `coderWorkspaceSingleAgent+running`) so
status-dependent menus use regex matching1 parent 0c3c250 commit b8f340c
File tree
4 files changed
+292
-67
lines changed- src
- workspace
4 files changed
+292
-67
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
262 | 268 | | |
263 | 269 | | |
264 | 270 | | |
| |||
368 | 374 | | |
369 | 375 | | |
370 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
371 | 382 | | |
372 | 383 | | |
373 | 384 | | |
| |||
400 | 411 | | |
401 | 412 | | |
402 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
403 | 418 | | |
404 | 419 | | |
405 | 420 | | |
| |||
494 | 509 | | |
495 | 510 | | |
496 | 511 | | |
497 | | - | |
| 512 | + | |
498 | 513 | | |
499 | 514 | | |
500 | 515 | | |
501 | 516 | | |
502 | | - | |
| 517 | + | |
503 | 518 | | |
504 | 519 | | |
505 | 520 | | |
506 | 521 | | |
507 | | - | |
| 522 | + | |
508 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
509 | 534 | | |
510 | 535 | | |
511 | 536 | | |
| |||
0 commit comments