Smart VSCode is a Visual Studio Code extension designed to analyze your codebase using a business context and generate new tests. This extension provides a sidebar view to manage your codebase and interact with a chatbot for assistance.
Features
Codebase Management: Easily name and manage your codebase.
Business Context Files: Select and upload business context files (PDF, DOCX, Markdown, TXT).
Chatbot Assistance: Interact with a chatbot to understand your codebase and get help.
Getting Started
Prerequisites
Visual Studio Code (version 1.98.0 or higher)
Node.js (version 14.x or higher)
npm (version 6.x or higher)
Installation
Clone the repository:
git clone https://github.com/yourusername/smart-vscode.git
cd smart-vscode
Install dependencies:
npm install
Compile the TypeScript code:
npm run compile
Running the Extension
Open the project in Visual Studio Code.
Press F5 to open a new window with your extension loaded.
Use the command palette (Ctrl+Shift+P or Cmd+Shift+P on Mac) and type Smart VSCode to activate the extension.
Using the Extension
Codebase Management:
Enter a name for your codebase.
Select and upload business context files.
Chatbot Assistance:
Navigate to the Chatbot tab.
Type your questions in the chat input and interact with the chatbot.
Development
Scripts
npm run compile: Compile the TypeScript code.
npm run watch: Watch for changes and recompile.
npm run lint: Run ESLint to check for code quality issues.
npm run test: Run the extension tests.
Testing
Run the "watch" task via the Tasks: Run Task command.
Open the Testing view from the activity bar and click the "Run Test" button.