From 1ca1b638e07496d70ce48c700c316c33f04927f9 Mon Sep 17 00:00:00 2001 From: Nadeshiko Manju Date: Tue, 10 Dec 2024 22:51:58 +0800 Subject: [PATCH] chore: Add default vscode config for more friendly developer experience (#5331) --- .gitignore | 4 ++-- .vscode/settings.json | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 5f15585d6716..d867d08e272c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ # IDE and editor -.vscode .idea - +.vscode +!.vscode/settings.json **/target **/vendor dist/ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000000..8a903fd1a084 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "rust-analyzer.cargo.allTargets": true, + "rust-analyzer.cargo.features": "all", + "rust-analyzer.linkedProjects": [ + "${workspaceFolder}/core/Cargo.toml", + "${workspaceFolder}/bindings/python/Cargo.toml", + "${workspaceFolder}/bindings/java/Cargo.toml", + "${workspaceFolder}/bindings/nodejs/Cargo.toml", + ], + "java.compile.nullAnalysis.mode": "automatic" +}