This repository was archived by the owner on May 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
001 vscode integration strategy
Morgan Joyce edited this page Jan 11, 2025
·
3 revisions
- Status: Decided
- Date: 2025-01-11
Our Dev Notes CLI tool needs to capture rich context from VS Code, including:
- Active file/workspace information
- Git context
- Editor state
- Selected text/cursor position
We have two potential approaches:
- Convert entire tool to VS Code extension
- Direct access to VS Code APIs
- Loses CLI flexibility outside VS Code
- Keep CLI independent
- Create VS Code extension that bridges to CLI
- Use environment variables or IPC for communication
- Maintains both CLI and IDE use cases
- Need to maintain CLI functionality outside VS Code
- Desire for rich editor context when available
- Cross-platform compatibility requirements
- Future extensibility to other IDEs
- How important is non-VS Code usage?
- Should we support other IDEs in the future?
- What's the performance impact of bridge vs native approach?
This decision significantly impacts our architecture. We should validate actual user needs before proceeding.
- Date: 2025-01-11
- Chosen Approach: Pure VS Code Extension (Approach 1)
- Our target users are primarily in VS Code-like environments
- Direct access to VS Code's rich context APIs is crucial
- Learning VS Code extension development aligns with our goals
- CLI can be considered as a future fallback rather than core feature
- Deep integration with VS Code capabilities
- Direct access to editor state and workspace context
- Simplified architecture (no bridge pattern needed)
- Initial CLI functionality will be lost
- Tied more closely to VS Code ecosystem
Next steps:
- Convert existing note-taking logic to VS Code extension
- Explore VS Code's context APIs
- Document VS Code extension development learnings