File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
extensions/ql-vscode/src/queries-panel Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ export class QueryTreeDataProvider
39
39
fileTreeDirectory : FileTreeNode ,
40
40
) : QueryTreeViewItem {
41
41
return new QueryTreeViewItem (
42
+ fileTreeDirectory . name ,
42
43
fileTreeDirectory . path ,
43
44
fileTreeDirectory . children . map ( this . convertFileTreeNode . bind ( this ) ) ,
44
45
) ;
Original file line number Diff line number Diff line change 1
1
import * as vscode from "vscode" ;
2
- import { basename } from "path" ;
3
2
4
3
export class QueryTreeViewItem extends vscode . TreeItem {
5
- constructor ( path : string , public readonly children : QueryTreeViewItem [ ] ) {
6
- super ( basename ( path ) ) ;
4
+ constructor (
5
+ name : string ,
6
+ path : string ,
7
+ public readonly children : QueryTreeViewItem [ ] ,
8
+ ) {
9
+ super ( name ) ;
7
10
this . tooltip = path ;
8
11
this . collapsibleState = this . children . length
9
12
? vscode . TreeItemCollapsibleState . Collapsed
You can’t perform that action at this time.
0 commit comments