@@ -5,6 +5,7 @@ import { PackageNode } from "./packageNode";
55import { RoutineNode } from "./routineNode" ;
66import { AtelierAPI } from "../../api" ;
77import { ClassNode } from "./classesNode" ;
8+ import { StudioOpenDialog } from "../../queries" ;
89
910export class RootNode extends NodeBase {
1011 public readonly contextValue : string ;
@@ -37,12 +38,12 @@ export class RootNode extends NodeBase {
3738 } ;
3839 }
3940
40- public async getChildren ( element ) : Promise < NodeBase [ ] > {
41+ public async getChildren ( element : NodeBase ) : Promise < NodeBase [ ] > {
4142 const path = this instanceof PackageNode || this . isCsp ? this . fullName + "/" : "" ;
4243 return this . getItems ( path , this . _category ) ;
4344 }
4445
45- public getList ( path : string , category : string , flat : boolean ) {
46+ public getList ( path : string , category : string , flat : boolean ) : Promise < ( StudioOpenDialog & { fullName : string } ) [ ] > {
4647 const sql = "CALL %Library.RoutineMgr_StudioOpenDialog(?,?,?,?,?,?,?)" ;
4748 // const sql = "CALL %Library.RoutineMgr_StudioOpenDialog(?,,,,,,?)";
4849 let spec = "" ;
@@ -86,7 +87,7 @@ export class RootNode extends NodeBase {
8687 return content ;
8788 } )
8889 . then ( ( data ) =>
89- data . map ( ( el ) => {
90+ data . map ( ( el : StudioOpenDialog ) => {
9091 let fullName = el . Name ;
9192 if ( this instanceof PackageNode ) {
9293 fullName = this . fullName + "." + el . Name ;
0 commit comments