6034: update workspace with better rust defaults r=heinrich5991 a=Jupeyy

As discussed with `@edg-l` rust-analyzer is the extension to use

## Checklist

- [ ] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test (especially base/) or added coverage to integration test
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
bors[bot] 2022-11-14 02:14:51 +00:00 committed by GitHub
commit 64edc3c622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,9 @@
"clang-format.executable": "clang-format-10",
"lldb.launch.expressions": "native",
"editor.defaultFormatter": "xaver.clang-format",
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
},
"editor.formatOnSave": true,
"cmake.additionalKits": [
"${workspaceFolder}/other/vscode/ddnet-cmake-tools-kits.json"
@ -172,7 +175,7 @@
"twxs.cmake",
"ms-vscode.cmake-tools",
"vadimcn.vscode-lldb",
"rust-lang.rust"
"rust-lang.rust-analyzer"
]
},
"tasks": {
@ -180,17 +183,31 @@
"tasks": [
{
"type": "cmake",
"label": "CMake: build",
"label": "CMake: build client",
"command": "build",
"targets": [
"all"
"DDNet"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"detail": "Build all targets"
"detail": "Build client targets"
},
{
"type": "cmake",
"label": "CMake: build server",
"command": "build",
"targets": [
"DDNet-Server"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"detail": "Build server targets"
}
]
},
@ -202,7 +219,7 @@
"request": "launch",
"name": "Launch client",
"program": "${workspaceFolder}/build/DDNet",
"preLaunchTask": "CMake: build",
"preLaunchTask": "CMake: build client",
// use dbg configs like this
// "args": [ "dbg_gfx 0" ],
// enable this to start the debugger with TSAN
@ -214,7 +231,7 @@
"request": "launch",
"name": "Launch server",
"program": "${workspaceFolder}/build/DDNet-Server",
"preLaunchTask": "CMake: build",
"preLaunchTask": "CMake: build server",
"cwd": "${workspaceFolder}/build"
},
// useful for cross debugging the windows (wine) client