LSP

Provide autocomplete, go-to-definition, hover, and diagnostics for ato files via LSP.

3.6k|225|Updated Dec 19, 2023
One-click install
npx skills add https://github.com/atopile/atopile --skill lsp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: LSP
Source: https://github.com/atopile/atopile/tree/main/.claude/skills/lsp
Command: npx skills add https://github.com/atopile/atopile --skill lsp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The LSP module provides IDE features for Atopile by implementing a Language Server Protocol using pygls. It enables per-document graph contexts, completion, hover, definitions, and diagnostics, delivering fast editor feedback and robust crash resilience.

Core Features & Use Cases

  • Autocomplete, go-to-definition, hover, and diagnostics for ato files in editors.
  • Per-document GraphView and TypeGraph management to keep responsiveness high.
  • Integrates with common editors (VSCode, other LSP clients) to streamline ato development workflows.

Quick Start

Start the server with python -m atopile.lsp.lsp_server and connect a compatible LSP client to an Atopile workspace to begin editing.

Frequently Asked Questions about LSP

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get autocomplete and go-to-definition for atopile files in my code editor?

To get autocomplete and go-to-definition for atopile files, you need to connect your LSP client to the atopile server. Start the server using python -m atopile.lsp.lsp_server within a Python environment to enable real-time IDE features.

What IDE features does a Language Server Protocol server provide for atopile code?

A Language Server Protocol server provides atopile code with real-time IDE features such as autocomplete, hover, diagnostics, and go-to-definition. It uses per-document graph contexts to deliver fast editor feedback and robust crash resilience.

Can I use the atopile LSP server with VSCode and other standard LSP clients?

Yes, you can use the atopile LSP server with VSCode and other standard LSP clients. It integrates with common editors to streamline ato development workflows by providing completion, hover, definitions, and diagnostics.

Do I need a Python environment to run the atopile language server?

Yes, you need a Python environment to run the atopile language server because it uses a pygls-based server frontend. You must execute the server via python -m atopile.lsp.lsp_server to start providing editor feedback for ato files.

Why does the atopile LSP server use per-document graph contexts?

The atopile LSP server uses per-document GraphView and TypeGraph management to keep editor responsiveness high. This per-document graph context approach ensures fast feedback and robust crash resilience while maintaining latency constraints.