Commit 196ed90
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 c9e552d commit 196ed90
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 | | |
| |||
363 | 369 | | |
364 | 370 | | |
365 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
366 | 377 | | |
367 | 378 | | |
368 | 379 | | |
| |||
391 | 402 | | |
392 | 403 | | |
393 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
394 | 409 | | |
395 | 410 | | |
396 | 411 | | |
| |||
485 | 500 | | |
486 | 501 | | |
487 | 502 | | |
488 | | - | |
| 503 | + | |
489 | 504 | | |
490 | 505 | | |
491 | 506 | | |
492 | 507 | | |
493 | | - | |
| 508 | + | |
494 | 509 | | |
495 | 510 | | |
496 | 511 | | |
497 | 512 | | |
498 | | - | |
| 513 | + | |
499 | 514 | | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
500 | 525 | | |
501 | 526 | | |
502 | 527 | | |
| |||
0 commit comments