Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Logic Pilot AINew to Visual Studio Code? Get it now.
Logic Pilot AI

Logic Pilot AI

Logic Pilot

|
35 installs
| (0) | Free
AI-powered code generation assistant for DragonJS Typescript for Naologic.com
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Logic Pilot - VSCode Extension

Logic Pilot is a VSCode extension that integrates AI-powered code generation directly into your TypeScript development workflow.

Features

  • Configuration Management: Easy setup of API URL and authentication key
  • Connection Testing: Verify your API connection with a simple test button
  • Context Menu Integration: Right-click on selected TypeScript code to generate AI-powered code suggestions
  • TypeScript Support: Works with both .ts and .tsx files

Installation

From Source

  1. Clone or download the extension files
  2. Open the folder in VSCode
  3. Install dependencies:
    npm install
    
  4. Compile the TypeScript:
    npm run compile
    
  5. Press F5 to launch a new Extension Development Host window

Package and Install

  1. Install vsce (Visual Studio Code Extension manager):
    npm install -g vsce
    
  2. Package the extension:
    vsce package
    
  3. Install the generated .vsix file:
    code --install-extension logic-pilot-1.0.0.vsix
    

Setup

  1. Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Run "Configure Logic Pilot"
  3. Enter your API URL and authentication key
  4. Click "Test Connection" to verify the setup
  5. Click "Save Configuration"

Usage

  1. Open a TypeScript file (.ts or .tsx)
  2. Select the text you want to use as a prompt for code generation
  3. Right-click and select "Generate Code with Logic Pilot"
  4. The generated code will be inserted below your selected text

API Requirements

Your API endpoint should support:

  • Ping endpoint: GET /app/ping - Returns 200 status for connection testing
  • Generate endpoint: POST /prompt/generate - Accepts JSON with prompt field and returns JSON with code field

Example API Response Format

{
  "code": "// Generated TypeScript code\nconst example = 'Hello World';"
}

Configuration

The extension stores configuration in VSCode settings:

  • logicPilot.apiUrl: Your API endpoint URL
  • logicPilot.authKey: Your authentication key

Commands

  • logicPilot.configure: Opens the configuration panel
  • logicPilot.generateCode: Generates code based on selected text (also available in context menu)

Development

Project Structure

├── package.json          # Extension manifest
├── tsconfig.json         # TypeScript configuration
├── src/
│   └── extension.ts      # Main extension code
└── out/                  # Compiled JavaScript output

Building

npm run compile          # Compile TypeScript
npm run watch           # Watch for changes and recompile

Troubleshooting

Common Issues

  1. "Logic Pilot is not configured": Run the configuration command and set up your API URL and auth key
  2. "Connection failed": Verify your API URL is correct and accessible
  3. "No code returned": Check that your API returns data in the expected format
  4. Context menu not appearing: Ensure you're in a TypeScript file and have text selected

Debug Mode

When running in debug mode (F5), check the Debug Console for detailed error messages and API responses.

License

MIT License - Feel free to modify and distribute as needed.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft