1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# 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"]