Skip to content

Commit 0cfcadd

Browse files
committed
fix: vscode - rust-analyzer
1 parent 065bf23 commit 0cfcadd

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Diff for: .gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pwasm-libc/Cargo.lock
99
bin/node/runtime/wasm/target/
1010
**/._*
1111
**/.criterion/
12-
.vscode
12+
# .vscode
1313
polkadot.*
1414
.DS_Store
1515
.idea/
@@ -29,4 +29,5 @@ rls*.log
2929

3030
# 2022:
3131
tmp/
32-
*.log
32+
*.log
33+
.history/

Diff for: .vscode/settings.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"rust-analyzer.lruCapacity": 1000,
3+
"rust-analyzer.cargo.allFeatures": true, // 分析器最大缓存深度
4+
// monorepo:
5+
"rust-analyzer.linkedProjects": [
6+
"packages/axum/axum-axum-v0.4.5/Cargo.toml",
7+
"packages/tokio/tokio-1.14.1/Cargo.toml",
8+
"packages/substrate/substrate-monthly-2022-02/Cargo.toml", // fix for vscode
9+
]
10+
}

0 commit comments

Comments
 (0)