feat: implement Sidebar Tree View and Quick Actions for VS Code extension#56
feat: implement Sidebar Tree View and Quick Actions for VS Code extension#56sakshar2303 wants to merge 1 commit intoDaviReisVieira:mainfrom
Conversation
|
Great contribution! The tree view architecture is solid, all API endpoints align correctly with the backend, and it compiles cleanly. A few things to address: Bugs1. OutputChannel leak ( let lambdaOutput: vscode.OutputChannel;
function getLambdaOutput(): vscode.OutputChannel {
if (!lambdaOutput) {
lambdaOutput = vscode.window.createOutputChannel('StackPort: Lambda');
}
return lambdaOutput;
}2. {
"command": "stackport.showResourceDetail",
"title": "StackPort: Show Resource Detail",
"category": "StackPort"
}3. Path parameters not URL-encoded ( fetch(`${this.endpoint}/api/lambda/functions/${encodeURIComponent(functionName)}/invoke`)Same for Minor
Tests
Future: WebSocket support (#19)And good news!! The current design is WebSocket-friendly. The |
|
@sakshar2303 heads up — I just opened #57 which adds a monochrome SVG sidebar icon at When you update your PR, please change the activity bar icon path in |
|
Thanks for the detailed review! I’m really glad the architecture aligns with the future WebSocket plans. I’m currently working on the following: Fixing the leaks/bugs: Implementing the OutputChannel singleton, adding the missing command to package.json, and wrapping path params in encodeURIComponent. Cleanup: Updating the .gitignore and refining those any types in api.ts. Icon Update: I’ll pull in the changes from #57 and update the sidebar icon path to the new SVG as requested. Regarding the tests—that would be a huge help! If you’re still open to writing the unit tests for api.ts and the tree provider, feel free to push them to this branch once I’ve pushed these fixes. I should have the update ready shortly. |
|
Hey @sakshar2303 ! Just wanted to follow up on the review above. If you'd like, I'm happy to pick up the requested changes myself and push them to your branch (or open a companion PR). Totally up to you — just let me know and I'll get it done. No pressure either way! |
Description: This PR implements the core functionality for the StackPort VS Code extension, bringing native AWS resource browsing and interaction directly into the IDE.
Key Features:
Native Sidebar Tree View: Adds a robust explorer panel to browse local AWS resources (Services → Resource Types → Individual Resources).
Service Status Indicators: Real-time status for each service (Available/Unavailable) with clear visual cues and tooltips.
Interactive Lambda Invocation: A new command to select functions, provide JSON payloads (with validation), and stream results/logs to a dedicated output channel.
SQS Rapid Messaging: Effortlessly pick a queue and send messages via the Command Palette.
Deep Backend Integration: A new extension-side API client built with fetch that connects to the StackPort backend (configurable via settings).
Implementation Details:
Manifest: Updated package.json with all necessary commands, views, and configurations.
API: Implemented api.ts for efficient backend communication.
UI: Added treeView.ts and commands.ts for a premium, interactive user experience.