@@ -83,7 +83,8 @@ export class UnknownTaskDependencyException extends BaseException {
83
83
}
84
84
85
85
export class CollectionImpl < CollectionT extends object , SchematicT extends object >
86
- implements Collection < CollectionT , SchematicT > {
86
+ implements Collection < CollectionT , SchematicT >
87
+ {
87
88
constructor (
88
89
private _description : CollectionDescription < CollectionT > ,
89
90
private _engine : SchematicEngine < CollectionT , SchematicT > ,
@@ -101,8 +102,8 @@ export class CollectionImpl<CollectionT extends object, SchematicT extends objec
101
102
return this . _engine . createSchematic ( name , this , allowPrivate ) ;
102
103
}
103
104
104
- listSchematicNames ( ) : string [ ] {
105
- return this . _engine . listSchematicNames ( this ) ;
105
+ listSchematicNames ( includeHidden ?: boolean ) : string [ ] {
106
+ return this . _engine . listSchematicNames ( this , includeHidden ) ;
106
107
}
107
108
}
108
109
@@ -169,7 +170,8 @@ export class TaskScheduler {
169
170
}
170
171
171
172
export class SchematicEngine < CollectionT extends object , SchematicT extends object >
172
- implements Engine < CollectionT , SchematicT > {
173
+ implements Engine < CollectionT , SchematicT >
174
+ {
173
175
private _collectionCache = new Map < string , CollectionImpl < CollectionT , SchematicT > > ( ) ;
174
176
private _schematicCache = new WeakMap <
175
177
Collection < CollectionT , SchematicT > ,
@@ -333,12 +335,15 @@ export class SchematicEngine<CollectionT extends object, SchematicT extends obje
333
335
return schematic ;
334
336
}
335
337
336
- listSchematicNames ( collection : Collection < CollectionT , SchematicT > ) : string [ ] {
337
- const names = this . _host . listSchematicNames ( collection . description ) ;
338
+ listSchematicNames (
339
+ collection : Collection < CollectionT , SchematicT > ,
340
+ includeHidden ?: boolean ,
341
+ ) : string [ ] {
342
+ const names = this . _host . listSchematicNames ( collection . description , includeHidden ) ;
338
343
339
344
if ( collection . baseDescriptions ) {
340
345
for ( const base of collection . baseDescriptions ) {
341
- names . push ( ...this . _host . listSchematicNames ( base ) ) ;
346
+ names . push ( ...this . _host . listSchematicNames ( base , includeHidden ) ) ;
342
347
}
343
348
}
344
349
0 commit comments