@d3ara1n/pi-editor-shell 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.ts +4 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -413,6 +413,10 @@ export default function (pi: ExtensionAPI) {
|
|
|
413
413
|
pi.registerCommand("editor-shell:status", {
|
|
414
414
|
description: "Show editor-shell debug state: status keys, pinned config, cache totals",
|
|
415
415
|
handler: async (_args, ctx) => {
|
|
416
|
+
// Refresh git dirty first so the status output reflects the current
|
|
417
|
+
// working tree — the event-driven cache is otherwise only updated at
|
|
418
|
+
// session_start / turn_end (see refreshGitDirty).
|
|
419
|
+
await new Promise<void>((resolve) => refreshGitDirty(ctx.cwd, resolve));
|
|
416
420
|
const lines: string[] = [];
|
|
417
421
|
|
|
418
422
|
lines.push("[editor-shell config]");
|