File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/vs/workbench/browser/parts/views Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -826,7 +826,10 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {
826
826
const isTreeEmpty = ! this . root . children || this . root . children . length === 0 ;
827
827
// Hide tree container only when there is a message and tree is empty and not refreshing
828
828
if ( this . _messageValue && isTreeEmpty && ! this . refreshing ) {
829
- this . treeContainer . classList . add ( 'hide' ) ;
829
+ // If there's a dnd controller then hiding the tree prevents it from being dragged into.
830
+ if ( ! this . dragAndDropController ) {
831
+ this . treeContainer . classList . add ( 'hide' ) ;
832
+ }
830
833
this . domNode . setAttribute ( 'tabindex' , '0' ) ;
831
834
} else {
832
835
this . treeContainer . classList . remove ( 'hide' ) ;
You can’t perform that action at this time.
0 commit comments