@@ -461,18 +461,38 @@ module.exports = class TheiaExtension extends Base {
461
461
/** tree-editor */
462
462
if ( this . params . extensionType === ExtensionType . TreeEditor ) {
463
463
this . fs . copyTpl (
464
- this . templatePath ( 'tree-editor/' ) ,
465
- this . extensionPath ( `src/browser/` ) ,
464
+ this . templatePath ( 'tree-editor/example-file ' ) ,
465
+ this . extensionPath ( `src/browser/example-file ` ) ,
466
466
{ params : this . params }
467
467
) ;
468
- this . fs . move (
469
- this . extensionPath ( 'src/browser/README.md' ) ,
468
+ this . fs . copyTpl (
469
+ this . templatePath ( 'tree-editor/style' ) ,
470
+ this . extensionPath ( `src/browser/style` ) ,
471
+ { params : this . params }
472
+ ) ;
473
+ this . fs . copyTpl (
474
+ this . templatePath ( 'tree-editor/tree' ) ,
475
+ this . extensionPath ( `src/browser/tree` ) ,
476
+ { params : this . params }
477
+ ) ;
478
+ this . fs . copyTpl (
479
+ this . templatePath ( 'tree-editor/README.md' ) ,
470
480
this . extensionPath ( `README.md` ) ,
471
481
) ;
472
- this . fs . move (
473
- this . extensionPath ( 'src/browser/tree-frontend-module.ts' ) ,
482
+ this . fs . copyTpl (
483
+ this . templatePath ( 'tree-editor/tree-contribution.ts' ) ,
484
+ this . extensionPath ( `src/browser/tree-contribution.ts` ) ,
485
+ { params : this . params }
486
+ ) ;
487
+ this . fs . copyTpl (
488
+ this . templatePath ( 'tree-editor/tree-frontend-module.ts' ) ,
474
489
this . extensionPath ( `src/browser/${ this . params . extensionPath } -frontend-module.ts` ) ,
475
490
) ;
491
+ this . fs . copyTpl (
492
+ this . templatePath ( 'tree-editor/tree-label-provider-contribution.ts' ) ,
493
+ this . extensionPath ( `src/browser/tree-label-provider-contribution.ts` ) ,
494
+ { params : this . params }
495
+ ) ;
476
496
}
477
497
478
498
/** DiagramEditor */
0 commit comments