mirror of
https://github.com/cline/cline.git
synced 2026-09-21 05:10:09 +08:00
Adds the `textDocuments` RPC method to the VS Code host bridge. This method allows the client to retrieve a list of currently open text documents in the VS Code workspace, along with their paths, active status, and view column information. The changes include: - Adding `textDocuments` RPC method to `WorkspaceService` in `proto/host/workspace.proto`. - Creating `src/hosts/vscode/hostbridge/workspace/textDocuments.ts` to implement the `textDocuments` method, which retrieves the list of open documents from `vscode.workspace.textDocuments` and their associated metadata. - Updating `DiffViewProvider.ts` to use the new `textDocuments` RPC method to check if a file is already open and dirty before getting its contents. This ensures that the latest version of the file is used.