@@ -182,8 +182,7 @@ export class CommitActionButton extends AbstractActionButton {
182
182
this . onDidChangeSmartCommitSettings ( ) ;
183
183
}
184
184
185
- if ( e . affectsConfiguration ( 'scm.experimental.showSyncView' ) ||
186
- e . affectsConfiguration ( 'git.branchProtectionPrompt' , root ) ||
185
+ if ( e . affectsConfiguration ( 'git.branchProtectionPrompt' , root ) ||
187
186
e . affectsConfiguration ( 'git.postCommitCommand' , root ) ||
188
187
e . affectsConfiguration ( 'git.rememberPostCommitCommand' , root ) ||
189
188
e . affectsConfiguration ( 'git.showActionButton' , root ) ) {
@@ -256,11 +255,6 @@ export class CommitActionButton extends AbstractActionButton {
256
255
}
257
256
258
257
protected override getPublishBranchActionButton ( ) : SourceControlActionButton | undefined {
259
- const scmConfig = workspace . getConfiguration ( 'scm' ) ;
260
- if ( scmConfig . get < boolean > ( 'experimental.showSyncView' , false ) ) {
261
- return undefined ;
262
- }
263
-
264
258
const config = workspace . getConfiguration ( 'git' , Uri . file ( this . repository . root ) ) ;
265
259
const showActionButton = config . get < { publish : boolean } > ( 'showActionButton' , { publish : true } ) ;
266
260
@@ -271,11 +265,6 @@ export class CommitActionButton extends AbstractActionButton {
271
265
}
272
266
273
267
protected override getSyncChangesActionButton ( ) : SourceControlActionButton | undefined {
274
- const scmConfig = workspace . getConfiguration ( 'scm' ) ;
275
- if ( scmConfig . get < boolean > ( 'experimental.showSyncView' , false ) ) {
276
- return undefined ;
277
- }
278
-
279
268
const config = workspace . getConfiguration ( 'git' , Uri . file ( this . repository . root ) ) ;
280
269
const showActionButton = config . get < { sync : boolean } > ( 'showActionButton' , { sync : true } ) ;
281
270
const branchIsAheadOrBehind = ( this . state . HEAD ?. behind ?? 0 ) > 0 || ( this . state . HEAD ?. ahead ?? 0 ) > 0 ;
0 commit comments