How williamsmithedward/xlide_vscode works
XLIDE is a VS Code extension for editing Office VBA and VB6 projects directly, without requiring COM for ordinary container access. Users open a macro-enabled file, browse and edit its modules with host-aware language services, analyze or refactor code, and save changes back to the container; optional workflows synchronize text files, design forms and shapes, and run VBA tests through an Office host. The README documents these capabilities; sampled source supports the parser/analyzer and container-engine links shown below, while some feature wiring remains unsampled.
Main entry points: vbaLanguageProviders.ts Editor language features · projectEngine.ts Project engine · projectExplorer.ts Project explorer · parseModule.ts Module parser
Components 22
Workspace and projects
- Project explorer
src/projectExplorer.ts - Project engine
src/projectEngine.ts - Workspace files
src/xlideFileSystem.ts
VBA language services
- VBA source scan
src/vbaSourceScan.ts - Lexer
src/analyzer/lexer/tokenize.ts - Module parser
src/analyzer/parser/parseModule.ts - Project symbols
src/analyzer/symbols/projectIndex.ts - Host object models
src/analyzer/host/hostModel.ts - IntelliSense
src/analyzer/completion/memberAccess.ts - Static analysis
src/analyzer/diagnostics/analyzeModule.ts - Editor language features
src/vbaLanguageProviders.ts
Container editing
- Container operations
src/vba/projectService.ts - Form designer
src/vba/formDesigner.ts - Shape editor
src/shapeEditor.ts - Module sync
src/moduleSyncPlan.ts
Engineering tools
- Refactorings
src/analyzer/refactor - VBA test runner
src/vbaTestRunPipeline.ts - Agent tools
src/agentTools.ts
Optional integrations
- Office host
- AI assistant
Other components
- Developer
- VS Code
Connections 26
- Developer → VS Code: edits in
- VS Code → Project explorer: opens projects
- Project explorer → Project engine: reads project
- Project engine → Container operations: dispatches operations
src/projectEngine.ts - Container operations → Workspace files: reads and writes
- Project explorer → VBA source scan: scans VBA
src/commands/projectCrudCommands.ts - VS Code → Editor language features: requests language features
- Editor language features → Module parser: parses modules
- Module parser → Lexer: tokenizes source
src/analyzer/parser/parseModule.ts - Module parser → Project symbols: builds symbols
- Editor language features → IntelliSense: provides completion
- IntelliSense → Host object models: looks up host members
src/analyzer/completion/memberAccess.ts - Editor language features → Static analysis: reports diagnostics
- Static analysis → Host object models: checks host members
- Static analysis → Project symbols: uses project symbols
- Developer → Refactorings: requests refactoring
- Developer → Form designer: edits forms
- Form designer → Container operations: updates form storage
src/vba/projectService.ts - Developer → Shape editor: edits shapes
- Shape editor → Project engine: writes shape changes
- Developer → Module sync: previews module sync
- Module sync → Workspace files: imports and exports
- Developer → VBA test runner: runs VBA tests
- VBA test runner → Office host: executes tests
- AI assistant → Agent tools: uses XLIDE tools
- Agent tools → Project engine: accesses project