continue
continue copied to clipboard
Bug: .continuerc.json files fail to load due to 'this' binding issue
Description
Workspace .continuerc.json files are silently ignored because ide.readFile loses its this binding when passed directly to .map().
Location
core/config/json/loadRcConfigs.ts line 21
Current code
return await Promise.all(rcFiles.map(ide.readFile));
Problem
When ide.readFile is passed as a callback to .map(), it's called without the ide context, causing this to be undefined inside the method. This causes the file read to fail silently.
Fix
return await Promise.all(rcFiles.map((uri) => ide.readFile(uri)));
Impact
- All
.continuerc.jsonworkspace-level configuration is ignored - Tool overrides, custom rules, and other per-repo settings don't work
- The function returns an empty array with no error logged
How to reproduce
- Create a
.continuerc.jsonin a workspace with any valid config - Add debug logging inside
getWorkspaceRcConfigs - Observe that
workspaceConfigsis always empty despite the file existing and being found bylistDir
Related issues:
- #9313 - Bug: YAML config path does not load workspace .continuerc.json files
- #3892 - .continuerc.json not overriding config.json for Android Studio
- #7524 - Issues with loading config
:tada: This issue has been resolved in version 1.41.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket: