File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
src/vs/workbench/contrib/scm/browser Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 309
309
display : none;
310
310
}
311
311
312
- .scm-view .scm-input .scm-editor .scm-editor-toolbar .disabled .action-item {
313
- cursor : default;
314
- }
315
-
316
- .scm-view .scm-input .scm-editor .scm-editor-toolbar .disabled .action-label : hover ,
317
- .scm-view .scm-input .scm-editor .scm-editor-toolbar .disabled .action-item .monaco-dropdown-with-primary : hover {
318
- background-color : unset;
319
- }
320
-
321
312
.scm-view .scm-input .scm-editor .scm-editor-toolbar .scroll-decoration {
322
313
box-shadow : var (--vscode-scrollbar-shadow ) 0 6px 6px -6px inset;
323
314
}
Original file line number Diff line number Diff line change @@ -1883,12 +1883,16 @@ class SCMInputWidgetToolbar extends WorkbenchToolBar {
1883
1883
primaryAction = actions . find ( a => a . id === lastActionId ) ?? actions [ 0 ] ;
1884
1884
}
1885
1885
1886
+ if ( primaryAction &&
1887
+ primaryAction . id !== SCMInputCommandId . CancelAction &&
1888
+ contextKeyService . getContextKeyValue ( SCMInputContextKeys . ActionIsEnabled . key ) === false ) {
1889
+ primaryAction . enabled = false ;
1890
+ }
1891
+
1886
1892
this . _ctxActionCount . set ( actions . length ) ;
1887
1893
this . _dropdownActions = actions . length === 1 ? [ ] : actions ;
1888
1894
1889
1895
container . classList . toggle ( 'has-no-actions' , actions . length === 0 ) ;
1890
- container . classList . toggle ( 'disabled' , contextKeyService . getContextKeyValue ( SCMInputContextKeys . ActionIsEnabled . key ) !== true ) ;
1891
-
1892
1896
super . setActions ( primaryAction ? [ primaryAction ] : [ ] , [ ] ) ;
1893
1897
} ;
1894
1898
You can’t perform that action at this time.
0 commit comments