File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
extensions/ql-vscode/src/queries-panel Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ export class QueryTreeDataProvider
3232 * @param item The item to represent.
3333 * @returns The UI presentation of the item.
3434 */
35- public getTreeItem (
36- item : QueryTreeViewItem ,
37- ) : vscode . TreeItem | Thenable < vscode . TreeItem > {
35+ public getTreeItem ( item : QueryTreeViewItem ) : vscode . TreeItem {
3836 return item ;
3937 }
4038
@@ -43,9 +41,7 @@ export class QueryTreeDataProvider
4341 * @param item The item to expand.
4442 * @returns The children of the item.
4543 */
46- public getChildren (
47- item ?: QueryTreeViewItem ,
48- ) : vscode . ProviderResult < QueryTreeViewItem [ ] > {
44+ public getChildren ( item ?: QueryTreeViewItem ) : QueryTreeViewItem [ ] {
4945 if ( ! item ) {
5046 // We're at the root.
5147 return this . queryTreeItems ;
Original file line number Diff line number Diff line change 11import * as vscode from "vscode" ;
22
33export class QueryTreeViewItem extends vscode . TreeItem {
4- public collapsibleState : vscode . TreeItemCollapsibleState ;
54 constructor (
6- public readonly label : string ,
7- public readonly tooltip : string | undefined ,
5+ label : string ,
6+ tooltip : string | undefined ,
87 public readonly children : QueryTreeViewItem [ ] ,
98 ) {
109 super ( label ) ;
10+ this . tooltip = tooltip ;
1111 this . collapsibleState = this . children . length
1212 ? vscode . TreeItemCollapsibleState . Collapsed
1313 : vscode . TreeItemCollapsibleState . None ;
You can’t perform that action at this time.
0 commit comments