Skip to content

Commit 9cd9af1

Browse files
committed
hide twistie
1 parent b2b35e4 commit 9cd9af1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/vs/workbench/contrib/chat/browser/chatSessions.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6+
import './media/chatSessions.css';
67
import * as nls from '../../../../nls.js';
78
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
89
import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.js';
@@ -514,10 +515,13 @@ class SessionsViewPane extends ViewPane {
514515
accessibilityProvider: {
515516
getAriaLabel: (element: IChatSessionItem) => element.label,
516517
getWidgetAriaLabel: () => nls.localize('chatSessions.treeAriaLabel', "Chat Sessions")
517-
}
518+
},
519+
hideTwistiesOfChildlessElements: true,
520+
allowNonCollapsibleParents: true // Allow nodes to be non-collapsible even if they have children
518521
}
519522
) as WorkbenchAsyncDataTree<IChatSessionItemProvider, IChatSessionItem, FuzzyScore>;
520523

524+
console.log('Tree created with hideTwistiesOfChildlessElements: true');
521525
this._register(this.tree);
522526

523527
// Handle double-click and keyboard selection to open editors
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
6+
.chat-sessions-tree .monaco-tl-twistie {
7+
display: none !important;
8+
}

0 commit comments

Comments
 (0)