@maxiaochao/pi-worktree 0.3.0 → 0.3.1
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/CHANGELOG.md +4 -0
- package/extensions/worktree.ts +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/extensions/worktree.ts
CHANGED
|
@@ -163,7 +163,12 @@ export default function worktreeExtension(pi: ExtensionAPI) {
|
|
|
163
163
|
switched = await ctx.switchSession(targetSessionFile, {
|
|
164
164
|
withSession: async (next) => {
|
|
165
165
|
const dirtyNote = prepared.dirty ? "(已有未提交改动)" : "";
|
|
166
|
-
next.
|
|
166
|
+
await next.sendMessage({
|
|
167
|
+
customType: "worktree-switch",
|
|
168
|
+
content: `✓ 已进入 worktree:${prepared.path}\nBranch: ${prepared.branch}${dirtyNote}`,
|
|
169
|
+
display: true,
|
|
170
|
+
details: prepared,
|
|
171
|
+
}, { triggerTurn: false });
|
|
167
172
|
},
|
|
168
173
|
});
|
|
169
174
|
} catch (error) {
|