continue icon indicating copy to clipboard operation
continue copied to clipboard

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

Open shanevcantwell opened this issue 11 months ago • 2 comments

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

shanevcantwell avatar Dec 25 '25 05:12 shanevcantwell

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

continue avatar Dec 25 '25 06:12 continue

:tada: This issue has been resolved in version 1.41.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

sestinj avatar Feb 03 '26 05:02 sestinj