33import * as path from 'path' ;
44import { logError , logInfo } from './utils/logger' ;
55import { URI } from 'vscode-uri' ;
6- import { isGlimmerXProject , isELSAddonRoot , isRootStartingWithFilePath , safeWalkAsync , asyncGetPackageJSON } from './utils/layout-helpers' ;
6+ import { isEmberLikeProject , isELSAddonRoot , isRootStartingWithFilePath , safeWalkAsync , asyncGetPackageJSON } from './utils/layout-helpers' ;
77
88import Server from './server' ;
99
@@ -83,7 +83,7 @@ export default class ProjectRoots {
8383 async findProjectsInsideRoot ( workspaceRoot : string ) {
8484 const roots = await safeWalkAsync ( workspaceRoot , {
8585 directories : false ,
86- globs : [ '**/ember-cli-build.js' , '**/package.json' ] ,
86+ globs : [ '**/ember-cli-build.js' , '**/ember-cli-build.cjs' , '**/ package.json'] ,
8787 ignore : [ '**/.git/**' , '**/bower_components/**' , '**/dist/**' , '**/node_modules/**' , '**/tmp/**' ] ,
8888 } ) ;
8989
@@ -97,7 +97,7 @@ export default class ProjectRoots {
9797
9898 if ( filePath . endsWith ( 'package.json' ) ) {
9999 try {
100- if ( await isGlimmerXProject ( fullPath ) ) {
100+ if ( await isEmberLikeProject ( fullPath ) ) {
101101 await this . onProjectAdd ( fullPath ) ;
102102 }
103103 } catch ( e ) {
0 commit comments