Overview Version History Q & A Rating & Review
Auto VSCode
VSCode的Auto语言插件。
Features (v0.2.0)
✅ Language Server Protocol (LSP) Support
Enhanced Code Completion
Context-aware completion for types, functions, variables, and members
User-defined types and functions extracted from AST
Trigger character support for . (member access)
Scope-aware type inference for local variables inside functions
Member completions show fields and methods for custom types
Hover Information
Hover over keywords shows usage documentation with examples
Hover over types shows type descriptions
Hover over stdlib functions shows signatures and examples
Hover over user-defined types, functions, methods, and fields
Scope-aware hover for local variables inside function scopes
Go to Definition
Navigate to function definitions (F12 or Ctrl+Click)
Navigate to type definitions
Navigate to variable declarations
Navigate to type methods and fields
Symbol map built from parsed AST with precise locations
Diagnostics
Real-time error checking as you type
Syntax errors appear in red squigglies
Error messages show in Problems panel
Line-based error location with timeout protection
✅ Syntax Highlighting
AutoLang syntax highlighting for .at, .as, .ac files
TextMate grammar for comprehensive token coverage
Installation
From Visual Studio Marketplace (Recommended)
Open VSCode
Press Ctrl+Shift+X to open Extensions
Search for "Auto Lang"
Click Install
Manual Installation
Download the latest .vsix file from Releases
In VSCode:
Press Ctrl+Shift+P
Type "Install from VSIX"
Select the downloaded .vsix file
Development
See README-LSP.md for LSP development and testing instructions.
Quick Start
Create a new file called test.at
Start typing AutoLang code:
type Point {
x int
y int
fn square() int {
x * x + y * y
}
}
fn main() {
let p Point = Point { x: 3, y: 4 }
p. // Type dot to see completions for x, y, square
}
Try these features:
Hover : Hover over Point, square, or p to see documentation
Go to Definition : Press F12 on square to jump to its definition
Completion : Type p. to see available fields and methods
Diagnostics : Type invalid syntax to see error highlighting
Version History
See CHANGELOG.md for detailed version history.
v0.2.0 (2025-01-15)
Added enhanced code completion with scope-aware type inference
Added hover information for all symbols
Added go-to-definition navigation
Added real-time diagnostics
Fixed critical document synchronization bug
v0.1.0 (2025-01-14)
Initial LSP implementation with basic code completion
v0.0.3
Initial syntax highlighting support
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.