Advertise environment config read support (#37654)

## What changed

- Add `environmentConfigRead` to exec-server environment capabilities and advertise it for local executors.
- Default the capability to `false` when deserializing responses from older executors.

## Testing

- Verify legacy capability responses remain compatible and the environment config integration reports support.

GitOrigin-RevId: c2110fea9e0e6e756eaeaaad096c50a943668c99
This commit is contained in:
sayan-oai
2026-08-09 02:59:39 +00:00
committed by copyberry
parent 94937de51b
commit 646f7c0a91
2 changed files with 26 additions and 0 deletions

View File

@@ -44,6 +44,9 @@ unselected = "do not return"
.await?;
let environment = Environment::create_for_tests(Some(server.websocket_url().to_string()))?;
let environment_info = environment.info().await?;
assert!(environment_info.capabilities.environment_config_read);
let response = environment
.read_environment_config(EnvironmentConfigReadParams {
cwd: PathUri::from_abs_path(&project),