Skip to content

Commit 75d1af7

Browse files
authored
Improve Rust LSP integration in Copilot CLI (#4277)
1 parent 487dcc5 commit 75d1af7

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/lsp.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
{
22
"lspServers": {
3-
"rust": {
3+
"rust-analyzer": {
44
"command": "rust-analyzer",
55
"fileExtensions": {
66
".rs": "rust"
7+
},
8+
"initializationOptions": {
9+
"cargo": {
10+
"buildScripts": {
11+
"enable": true
12+
},
13+
"allFeatures": true
14+
},
15+
"procMacro": {
16+
"enable": true
17+
},
18+
"checkOnSave": true,
19+
"check": {
20+
"command": "clippy"
21+
}
722
}
823
}
924
}
10-
}
25+
}

0 commit comments

Comments
 (0)