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
3939 fileTreeDirectory : FileTreeNode ,
4040 ) : QueryTreeViewItem {
4141 return new QueryTreeViewItem (
42+ fileTreeDirectory . name ,
4243 fileTreeDirectory . path ,
4344 fileTreeDirectory . children . map ( this . convertFileTreeNode . bind ( this ) ) ,
4445 ) ;
Original file line number Diff line number Diff line change 11import * as vscode from "vscode" ;
2- import { basename } from "path" ;
32
43export 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 ) ;
710 this . tooltip = path ;
811 this . collapsibleState = this . children . length
912 ? vscode . TreeItemCollapsibleState . Collapsed
You can’t perform that action at this time.
0 commit comments