A VSCode extension that integrates with Mooch to analyze code files in the background. The extension reads the currently open file in VSCode and sends it via the Mooch bridge to the Mooch application for analysis. The analysis happens silently in the background without user intervention.
Important Note: VSCode vs Browser Extension
This extension operates independently from the Mooch browser extension. The browser extension is designed to work with coding challenge websites (LeetCode, HackerRank, etc.) and connects to the "Code Interview" screen in Mooch. This VSCode extension focuses on analyzing the current file in your editor and does not affect the browser extension's functionality or status indicators.
Features
Automatically analyzes code files when opened, saved, or focused
Silent background processing without interrupting workflow
Configurable analysis triggers
Error handling for Mooch bridge connectivity issues
Operates independently from browser extension
Prerequisites
VSCode version 1.74 or higher
Mooch application running and accessible via the bridge API at http://127.0.0.1:62544
Installation
Clone the repository
Install dependencies: npm install
Compile the extension: npm run compile
Press F5 to open a new window with the extension loaded
Configuration
The extension provides the following configuration options:
moochAnalyzer.enabled: Enable automatic analysis of current file (default: true)
moochAnalyzer.events: Events that trigger code analysis (default: ["onOpen", "onSave"])
moochAnalyzer.bridgeUrl: URL of the Mooch bridge API (default: "http://127.0.0.1:62544")
To configure these options:
Open VSCode settings (Ctrl+, or Cmd+,)
Search for "Mooch Code Analyzer"
Modify the settings as needed
Development
Run npm run compile to compile the extension
Run npm run watch to watch for changes and compile automatically