Skip to content

Bug: .continuerc.json files fail to load due to 'this' binding issue #9312

@shanevcantwell

Description

@shanevcantwell

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.json workspace-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

  1. Create a .continuerc.json in a workspace with any valid config
  2. Add debug logging inside getWorkspaceRcConfigs
  3. Observe that workspaceConfigs is always empty despite the file existing and being found by listDir

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:configurationRelates to configuration optionskind:bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions