@@ -64,7 +64,7 @@ import {
6464 setCanonicalIndexExtensionPath ,
6565} from './canonicalPathIndex' ;
6666import { propagateCanonicalSave } from './canonicalSavePropagation' ;
67- import { normalizePath , pathsEqual } from './projectPaths' ;
67+ import { getProjectModRoots , normalizePath , pathsEqual } from './projectPaths' ;
6868import type { DiskWriteNotification } from './totkDiskFs' ;
6969import { configureFilteringRules } from './filteringRules' ;
7070import {
@@ -1078,17 +1078,25 @@ export async function activate(context: vscode.ExtensionContext) {
10781078 return ;
10791079 }
10801080
1081+ const allModRoots = new Set < string > ( ) ;
1082+ for ( const root of roots ) {
1083+ const modRoots = getProjectModRoots ( root . fsPath ) ;
1084+ for ( const m of modRoots ) {
1085+ allModRoots . add ( m ) ;
1086+ }
1087+ }
1088+
10811089 await vscode . window . withProgress (
10821090 {
10831091 location : vscode . ProgressLocation . Notification ,
10841092 title : 'Scanning project files and mapping canonical paths...' ,
10851093 cancellable : false ,
10861094 } ,
10871095 async ( ) => {
1088- for ( const root of roots ) {
1096+ for ( const modRoot of allModRoots ) {
10891097 await ensureProjectCanonicalImport ( {
10901098 overlayDbPath : projectCanonicalOverlayPath ,
1091- projectRoot : root . fsPath ,
1099+ projectRoot : modRoot ,
10921100 romfsPath,
10931101 pythonExecutable : pythonExe ,
10941102 bridgePath,
0 commit comments