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
32
32
* @param item The item to represent.
33
33
* @returns The UI presentation of the item.
34
34
*/
35
- public getTreeItem (
36
- item : QueryTreeViewItem ,
37
- ) : vscode . TreeItem | Thenable < vscode . TreeItem > {
35
+ public getTreeItem ( item : QueryTreeViewItem ) : vscode . TreeItem {
38
36
return item ;
39
37
}
40
38
@@ -43,9 +41,7 @@ export class QueryTreeDataProvider
43
41
* @param item The item to expand.
44
42
* @returns The children of the item.
45
43
*/
46
- public getChildren (
47
- item ?: QueryTreeViewItem ,
48
- ) : vscode . ProviderResult < QueryTreeViewItem [ ] > {
44
+ public getChildren ( item ?: QueryTreeViewItem ) : QueryTreeViewItem [ ] {
49
45
if ( ! item ) {
50
46
// We're at the root.
51
47
return this . queryTreeItems ;
Original file line number Diff line number Diff line change 1
1
import * as vscode from "vscode" ;
2
2
3
3
export class QueryTreeViewItem extends vscode . TreeItem {
4
- public collapsibleState : vscode . TreeItemCollapsibleState ;
5
4
constructor (
6
- public readonly label : string ,
7
- public readonly tooltip : string | undefined ,
5
+ label : string ,
6
+ tooltip : string | undefined ,
8
7
public readonly children : QueryTreeViewItem [ ] ,
9
8
) {
10
9
super ( label ) ;
10
+ this . tooltip = tooltip ;
11
11
this . collapsibleState = this . children . length
12
12
? vscode . TreeItemCollapsibleState . Collapsed
13
13
: vscode . TreeItemCollapsibleState . None ;
You can’t perform that action at this time.
0 commit comments