AI assistant for the Flex programming language with multilingual syntax support (Franco-Arabic and English).
- Bilingual Support: Works with both Franco-Arabic and English Flex syntax
- Intelligent Code Assistance: AI-powered help with Flex programming concepts
- Syntax Highlighting: Enhanced code highlighting for Flex language constructs
- Real-time Chat Interface: Interactive chat within VS Code sidebar
- Multiple AI Models: Support for various OpenRouter AI models
- Professional UI: Modern, responsive design optimized for development
- VS Code 1.61.0 or higher
- OpenRouter API key (get one at OpenRouter)
- Install the extension from VS Code marketplace (coming soon)
- Or manually install the
.vsixfile - Configure your OpenRouter API key in settings
- Start chatting with the Flex Assistant!
Open VS Code settings and search for "Flex Chatbot" to configure:
- API Key: Your OpenRouter API key
- Model: AI model to use (default: openai/gpt-4o-mini)
- Temperature: Response creativity (0.0-2.0)
- Web Search: Enable web search capabilities
- Timeouts: Request timeout settings
The extension includes comprehensive testing capabilities:
# Unit tests only (fast, no VS Code required)
npm run test:unit
# Safe testing (alias for test:unit)
npm run test:safe
# Full integration tests
npm test
# Force close VS Code and run tests
FORCE_CLOSE_VSCODE=true npm test
# Close VS Code instances manually
npm run kill-vscodeIf you encounter the "no other instance of Code is running" error:
Option 1: Use Safe Testing
npm run test:unit # Runs compilation and linting onlyOption 2: Auto-close VS Code
npm run kill-vscode
npm testOption 3: Force Testing
FORCE_CLOSE_VSCODE=true npm testOption 4: Manual Approach
- Close all VS Code windows
- Run
npm test
- Unit Tests (
test:unit): TypeScript compilation + ESLint validation - Integration Tests (
test): Full VS Code extension testing with isolated instance - Development Tests: Available through the extension's debug dashboard
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes
npm run watch
# Lint code
npm run lint
# Run all checks
npm run test:unitThe extension follows enterprise-grade architecture patterns:
- Services Layer: Modular services for API, configuration, dataset management
- Core Systems: Debugging and error handling infrastructure
- UI Components: Professional webview with responsive design
- Testing Framework: Comprehensive unit and integration testing
The assistant provides expert help with:
- Franco-Arabic Syntax:
rakm,etb3,lw,karr, etc. - English Syntax:
int,print,if,for, etc. - Mixed Programming: Seamless combination of both syntaxes
- Best Practices: Safe coding patterns and performance tips
- Debugging: Error identification and resolution
- Fork the repository
- Create a feature branch
- Make your changes
- Run
npm run test:unitto verify - Submit a pull request
MIT License - see LICENSE file for details