solidity-language-server 0.1.29

A fast Solidity language server powered by solc and Foundry
Documentation
# Solidity Language Server — PR benchmark config
# Usage: cargo build --release && lsp-bench
project: example
file: Shop.sol
line: 130
col: 26

iterations: 10
warmup: 2
timeout: 10
index_timeout: 15
output: benchmarks/latest
report: README.md

# Exclude unimplemented methods
exclude:
  - textDocument/typeDefinition
  - textDocument/implementation
  - textDocument/codeLens
  - textDocument/documentColor
  - textDocument/colorPresentation
  - textDocument/rangeFormatting
  - textDocument/onTypeFormatting

methods:
  textDocument/completion:
    line: 72
    col: 34
    trigger: "."
    # Transaction. — member access on library type, returns Order/addTax/getRefund

  textDocument/signatureHelp:
    line: 136
    col: 45
    # Inside PRICE.addTax(TAX, TAX_BASE) — parameter info on first arg

  textDocument/documentHighlight:
    line: 130
    col: 26
    # owner — used across constructor, checkOwner, transferOwnership

  textDocument/inlayHint:
    line: 135
    col: 0
    endLine: 147
    endCol: 0
    # buy() function body — parameter names + gas estimates

  textDocument/semanticTokens/range:
    startLine: 0
    startCol: 0
    line: 100
    col: 0
    # First 100 lines — library through contract declarations

  textDocument/codeAction:
    line: 264
    col: 8
    expect:
      titleContains: "Remove unused import"

  textDocument/formatting:
    didChange:
      - file: Shop.unformatted.snapshot
        line: 0
        col: 0

servers:
  - label: latest
    description: Latest version
    cmd: ./target/release/solidity-language-server

  # - label: 0.1.24
  #   description: Last deployed version
  #   cmd: /Users/meek/.solidity-lsp/0.1.24/bin/solidity-language-server

  # - label: solc
  #   description: Official Solidity compiler LSP
  #   link: https://docs.soliditylang.org
  #   cmd: solc
  #   args: ["--lsp"]
  #
  # - label: nomicfoundation
  #   description: Hardhat/Nomic Foundation Solidity Language Server
  #   link: https://github.com/NomicFoundation/hardhat-vscode
  #   cmd: nomicfoundation-solidity-language-server
  #   args: ["--stdio"]
  #
  # - label: juanfranblanco
  #   description: VSCode Solidity by Juan Blanco
  #   link: https://github.com/juanfranblanco/vscode-solidity
  #   cmd: vscode-solidity-server
  #   args: ["--stdio"]
  #
  # - label: qiuxiang
  #   description: Solidity Language Server by qiuxiang
  #   link: https://github.com/qiuxiang/solidity-ls
  #   cmd: solidity-ls
  #   args: ["--stdio"]