VS Code extension that connects models from https://ask.sadata.id into the VS Code Chat model picker through the stable registerLanguageModelChatProvider API.
Features
Fixed backend endpoint: https://ask.sadata.id
API key stored securely via VS Code SecretStorage
Connected-state UI optimization:
if key is already saved, key input form is hidden
actions shown are Refresh and Disconnect
Model loading from /api/v1/models with cache and refresh flow
Runtime tool-calling support probe through chat completions (not inferred from model metadata alone)
Streaming chat response handling
Status bar analytics and quick actions
Output channel for diagnostics: Neuron
Requirements
VS Code 1.104.0 or newer
Development
Open this folder in VS Code.
Press F5 to run Extension Development Host.
Open Neuron in the Activity Bar.
Set API key from ask.sadata.id.
Use VS Code Chat model picker to select available models.
Build and Install
npm run lint
npm run package
code --install-extension dist/sadata-neuron.vsix
Architecture
src/extension.js - activation, command registration, status bar
src/provider.js - LanguageModelChatProvider implementation
src/api.js - HTTP and streaming integration
src/config.js - constants and secret helpers
src/webview.js - connection webview controller
media/view.html - webview markup
media/view.css - webview styling
media/view.js - webview behavior