Skip to content
forge-lspPublic

About

Smart contract language server

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

85 Commits

Folders and files

Repository files navigation

ForgeLS

ForgeLS banner

License: MIT OR Apache-2.0 LSP: 3.18

ForgeLS is a Language Server Protocol server for smart contract languages. It runs over stdio and currently supports Solidity, with architecture ready for Noir and other languages.

  • Diagnostics with UTF-16 positions, debounced publish, clear on close.
  • Hover, completion, and goto-definition for Solidity.
  • Multi-root workspaces, strict LSP lifecycle, TOML config with log levels.

Installation

Requires Rust stable with cargo.

cargo install --path crates/forgels

Or run from source:

cargo run -p forgels

The server speaks JSON-RPC over stdio. Point any generic LSP client at the forgels binary with language id solidity for .sol files.

Configuration

Optional forgels.toml next to the binary working directory:

publish_delay_ms = 200
log_level = "warn"

Flags: --log-level <error|warn|info|debug|trace>. Flags win over the file. Missing or broken files fall back to defaults with a stderr warning.

Documentation

Development

cargo check --workspace
cargo test --workspace
cargo fmt --all
cargo clippy --workspace -- -D warnings

Read AGENTS.md before changing code. It defines the workspace split, Plane-first workflow, and skill setup.

Contributors

ForgeLS Contributors. See AGENTS.md for workflow, skills, and review gates.

License

MIT OR Apache-2.0. See Cargo.toml.

About

Smart contract language server

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages