-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
area:configurationRelates to configuration optionsRelates to configuration optionskind:bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
Description
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
Metadata
Metadata
Assignees
Labels
area:configurationRelates to configuration optionsRelates to configuration optionskind:bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
Type
Projects
Status
Todo