CoAgent8 - Source API
    Preparing search index...

    Function syncVscodeRegistration

    • Keeps the extension's CoAgent8 entry in its profile mcp.json equal to server.

      Parameters

      • options: VscodeSyncOptions

        storagePath, the extension's global storage in this profile; bundle, the runtime bundle shipped with the running extension; home, the directory holding ~/.coagent8; folders, the window's workspace folders; restore, which adds the entry again after the user removed it or while a workspace provides CoAgent8.

      Returns Promise<VscodeRegistration>

      The entry serves every window of the profile, so it is not added while this window's workspace registers CoAgent8 (VS Code would list both), and never removed for it: windows of other workspaces would add it back. Runs under the lease of ~/.coagent8 that every window and the uninstall hook share.

      When the profile mcp.json or the ownership record is malformed or unreadable, when another process keeps changing them, or when the lease is not acquired in time.