M4.5: branch status-bar item and branches popup
The status bar shows the current branch (short hash when detached). Its popup lists local, then remote branches with a filter and New branch; checkout runs flushDirty first and toasts git's refusal. Commands vcs.branches, vcs.newBranch and vcs.checkout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b3642e53ea
commit
149a6c7049
18 changed files with 1585 additions and 17 deletions
|
|
@ -258,7 +258,9 @@ describe("CommandPalette", () => {
|
|||
expect(wrapper.find("[data-test=palette]").exists()).toBe(true);
|
||||
expect(document.activeElement).toBe(wrapper.find("[data-test=palette-input]").element);
|
||||
expect(rows(wrapper)).toEqual([
|
||||
"vcs.branches",
|
||||
"vcs.openChanges",
|
||||
"vcs.checkout",
|
||||
"project.close",
|
||||
"palette.open",
|
||||
"vcs.commit",
|
||||
|
|
@ -267,6 +269,7 @@ describe("CommandPalette", () => {
|
|||
"goto.classOpen",
|
||||
"goto.fileOpen",
|
||||
"goto.symbolOpen",
|
||||
"vcs.newBranch",
|
||||
"vcs.nextChange",
|
||||
"project.openDialog",
|
||||
"menu.open",
|
||||
|
|
@ -315,7 +318,7 @@ describe("CommandPalette", () => {
|
|||
await press({ key: "ArrowUp" });
|
||||
expect(wrapper.find("[aria-selected=true]").attributes("data-command")).toBe("terminal.open");
|
||||
await press({ key: "ArrowDown" });
|
||||
expect(wrapper.find("[aria-selected=true]").attributes("data-command")).toBe("vcs.openChanges");
|
||||
expect(wrapper.find("[aria-selected=true]").attributes("data-command")).toBe("vcs.branches");
|
||||
});
|
||||
|
||||
it("dims disabled commands, which Enter and clicks do not run", async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue