Skip to content

Commit cbca646

Browse files
authored
SCM - handle status bar commands contributed by the Remote Repositories extension (microsoft#263236)
1 parent 21263f0 commit cbca646

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/scm/browser/activity.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ export class SCMActiveRepositoryController extends Disposable implements IWorkbe
158158
const tooltip = `${label}${command.tooltip ? ` - ${command.tooltip}` : ''}`;
159159

160160
// Get a repository agnostic name for the status bar action, derive this from the
161-
// first command argument which is in the form "git.<command>/<number>"
161+
// first command argument which is in the form of "<extension>.<command>/<number>"
162162
let repoAgnosticActionName = command.arguments?.[0];
163163
if (repoAgnosticActionName && typeof repoAgnosticActionName === 'string') {
164164
repoAgnosticActionName = repoAgnosticActionName
165165
.substring(0, repoAgnosticActionName.lastIndexOf('/'))
166-
.replace(/^git\./, '');
166+
.replace(/^(?:git\.|remoteHub\.)/, '');
167167
if (repoAgnosticActionName.length > 1) {
168168
repoAgnosticActionName = repoAgnosticActionName[0].toLocaleUpperCase() + repoAgnosticActionName.slice(1);
169169
}

0 commit comments

Comments
 (0)