Skip to content

Commit 7f82520

Browse files
authored
fix duplicate registrations (microsoft#202557)
1 parent 2c8f291 commit 7f82520

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/vs/workbench/contrib/userDataSync/browser/userDataSync.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo
840840

841841
private conflictsActionDisposable = this._register(new MutableDisposable());
842842
private registerShowConflictsAction(): void {
843+
this.conflictsActionDisposable.value = undefined;
843844
const that = this;
844845
this.conflictsActionDisposable.value = registerAction2(class TurningOnSyncAction extends Action2 {
845846
constructor() {

src/vs/workbench/contrib/userDataSync/browser/userDataSyncViews.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export class UserDataSyncDataViews extends Disposable {
224224
registerAction2(class extends Action2 {
225225
constructor() {
226226
super({
227-
id: `workbench.actions.sync.resolveResource`,
227+
id: `workbench.actions.sync.${viewId}.resolveResource`,
228228
title: localize('workbench.actions.sync.resolveResourceRef', "Show raw JSON sync data"),
229229
menu: {
230230
id: MenuId.ViewItemContext,
@@ -242,7 +242,7 @@ export class UserDataSyncDataViews extends Disposable {
242242
registerAction2(class extends Action2 {
243243
constructor() {
244244
super({
245-
id: `workbench.actions.sync.compareWithLocal`,
245+
id: `workbench.actions.sync.${viewId}.compareWithLocal`,
246246
title: localize('workbench.actions.sync.compareWithLocal', "Compare with Local"),
247247
menu: {
248248
id: MenuId.ViewItemContext,
@@ -267,7 +267,7 @@ export class UserDataSyncDataViews extends Disposable {
267267
registerAction2(class extends Action2 {
268268
constructor() {
269269
super({
270-
id: `workbench.actions.sync.replaceCurrent`,
270+
id: `workbench.actions.sync.${viewId}.replaceCurrent`,
271271
title: localize('workbench.actions.sync.replaceCurrent', "Restore"),
272272
icon: Codicon.discard,
273273
menu: {

0 commit comments

Comments
 (0)