Skip to content

fix(grpc): GetConnectedWorkspaces should refresh via backchannel like REST #35

Description

@cidrblock

Summary

GET /api/workspaces in the REST API probes connected VS Code instances via a backchannel to get fresh workspace data before responding. The gRPC GetConnectedWorkspaces handler only returns cached getVSCodeWorkspaces() data without triggering a refresh.

This means gRPC clients may see stale workspace lists, especially if VS Code opened new folders since the last backchannel exchange.

Expected behavior

GetConnectedWorkspaces should trigger the same backchannel probe as the REST endpoint before returning results, or at minimum document that it returns cached data and provide a separate RefreshWorkspaces RPC.

Context

Identified during gRPC config parity audit in #32.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions