Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SourceControl.statusBarCommands - third and subsequent commands are detached from first two #214918

Closed
gjsjohnmurray opened this issue Jun 11, 2024 · 1 comment · Fixed by #216605
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders scm General SCM compound issues
Milestone

Comments

@gjsjohnmurray
Copy link
Contributor

gjsjohnmurray commented Jun 11, 2024

Type: Bug

  1. Have an SCM extension that adds more that 2 status bar commands.
  2. Observe that the 3rd and subsequent ones aren't adjacent to the first two.

image

Clone https://github.com/gjsjohnmurray/vscode-extension-samples/tree/show-vscode-214918 for the example shown in the screenshot above.

VS Code version: Code - Insiders 1.91.0-insider (21decd9, 2024-06-11T06:46:21.055Z)
OS version: Windows_NT x64 10.0.22631
Modes:

gjsjohnmurray added a commit to gjsjohnmurray/vscode-extension-samples that referenced this issue Jun 11, 2024
@lszomoru lszomoru added bug Issue identified by VS Code Team member as probable bug scm General SCM compound issues labels Jun 12, 2024
@lszomoru lszomoru added this to the June 2024 milestone Jun 12, 2024
@gjsjohnmurray
Copy link
Contributor Author

I think the fix probably needs to be here:

store.add(index === 0 ?
this.statusbarService.addEntry(statusbarEntry, `status.scm.${index}`, MainThreadStatusBarAlignment.LEFT, 10000) :
this.statusbarService.addEntry(statusbarEntry, `status.scm.${index}`, MainThreadStatusBarAlignment.LEFT, { id: `status.scm.${index - 1}`, alignment: MainThreadStatusBarAlignment.RIGHT, compact: true })
);

gjsjohnmurray added a commit to gjsjohnmurray/vscode that referenced this issue Jun 12, 2024
@VSCodeTriageBot VSCodeTriageBot added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders scm General SCM compound issues
Projects
None yet
3 participants