Commit f13bd39
committed
feat(Mountain): implement workspace RPC handlers for extension compatibility
- Added `workspace` module to handle Cocoon RPC requests for workspace operations
- Implemented `$getWorkspaceFolders`, `$requestWorkspaceTrust`, and `$findFiles` handlers
- Integrated `ignore` and `globset` crates for performant file search with ignore patterns
- Added URI conversion utilities matching VS Code's URI component format requirements
- Implemented workspace change notifications via Vine IPC using `$onDidChangeWorkspaceFolders`
- Added atomic trust state management and trust change notifications
- Introduced error handling utilities for RPC parameter validation and lock contention
This enables VS Code extensions to access workspace information through Cocoon shim layer, maintaining compatibility while leveraging Rust's performance for file system operations. The implementation respects .gitignore patterns and handles cross-platform path normalization.1 parent 02ffd1d commit f13bd39
2 files changed
Lines changed: 348 additions & 263 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
0 commit comments