File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -593,6 +593,9 @@ export class ViewPaneContainer extends Component implements IViewPaneContainer {
593
593
}
594
594
595
595
getActionsContext ( ) : unknown {
596
+ if ( this . isViewMergedWithContainer ( ) ) {
597
+ return this . panes [ 0 ] . getActionsContext ( ) ;
598
+ }
596
599
return undefined ;
597
600
}
598
601
Original file line number Diff line number Diff line change 6
6
import 'vs/css!./media/scm' ;
7
7
import { localize } from 'vs/nls' ;
8
8
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry' ;
9
- import { ISCMViewService , VIEWLET_ID } from 'vs/workbench/contrib/scm/common/scm' ;
9
+ import { VIEWLET_ID } from 'vs/workbench/contrib/scm/common/scm' ;
10
10
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
11
11
import { IContextMenuService } from 'vs/platform/contextview/browser/contextView' ;
12
12
import { IThemeService } from 'vs/platform/theme/common/themeService' ;
@@ -21,7 +21,6 @@ import { ViewPaneContainer } from 'vs/workbench/browser/parts/views/viewPaneCont
21
21
export class SCMViewPaneContainer extends ViewPaneContainer {
22
22
23
23
constructor (
24
- @ISCMViewService private readonly scmViewService : ISCMViewService ,
25
24
@IWorkbenchLayoutService layoutService : IWorkbenchLayoutService ,
26
25
@ITelemetryService telemetryService : ITelemetryService ,
27
26
@IInstantiationService instantiationService : IInstantiationService ,
@@ -49,8 +48,4 @@ export class SCMViewPaneContainer extends ViewPaneContainer {
49
48
return localize ( 'source control' , "Source Control" ) ;
50
49
}
51
50
52
- override getActionsContext ( ) : unknown {
53
- return this . scmViewService . visibleRepositories . length === 1 ? this . scmViewService . visibleRepositories [ 0 ] . provider : undefined ;
54
- }
55
-
56
51
}
You can’t perform that action at this time.
0 commit comments