mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Merge #6034
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:
commit
64edc3c622
|
@ -80,6 +80,9 @@
|
||||||
"clang-format.executable": "clang-format-10",
|
"clang-format.executable": "clang-format-10",
|
||||||
"lldb.launch.expressions": "native",
|
"lldb.launch.expressions": "native",
|
||||||
"editor.defaultFormatter": "xaver.clang-format",
|
"editor.defaultFormatter": "xaver.clang-format",
|
||||||
|
"[rust]": {
|
||||||
|
"editor.defaultFormatter": "rust-lang.rust-analyzer",
|
||||||
|
},
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"cmake.additionalKits": [
|
"cmake.additionalKits": [
|
||||||
"${workspaceFolder}/other/vscode/ddnet-cmake-tools-kits.json"
|
"${workspaceFolder}/other/vscode/ddnet-cmake-tools-kits.json"
|
||||||
|
@ -172,7 +175,7 @@
|
||||||
"twxs.cmake",
|
"twxs.cmake",
|
||||||
"ms-vscode.cmake-tools",
|
"ms-vscode.cmake-tools",
|
||||||
"vadimcn.vscode-lldb",
|
"vadimcn.vscode-lldb",
|
||||||
"rust-lang.rust"
|
"rust-lang.rust-analyzer"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"tasks": {
|
"tasks": {
|
||||||
|
@ -180,17 +183,31 @@
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"type": "cmake",
|
"type": "cmake",
|
||||||
"label": "CMake: build",
|
"label": "CMake: build client",
|
||||||
"command": "build",
|
"command": "build",
|
||||||
"targets": [
|
"targets": [
|
||||||
"all"
|
"DDNet"
|
||||||
],
|
],
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
},
|
},
|
||||||
"problemMatcher": [],
|
"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",
|
"request": "launch",
|
||||||
"name": "Launch client",
|
"name": "Launch client",
|
||||||
"program": "${workspaceFolder}/build/DDNet",
|
"program": "${workspaceFolder}/build/DDNet",
|
||||||
"preLaunchTask": "CMake: build",
|
"preLaunchTask": "CMake: build client",
|
||||||
// use dbg configs like this
|
// use dbg configs like this
|
||||||
// "args": [ "dbg_gfx 0" ],
|
// "args": [ "dbg_gfx 0" ],
|
||||||
// enable this to start the debugger with TSAN
|
// enable this to start the debugger with TSAN
|
||||||
|
@ -214,7 +231,7 @@
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Launch server",
|
"name": "Launch server",
|
||||||
"program": "${workspaceFolder}/build/DDNet-Server",
|
"program": "${workspaceFolder}/build/DDNet-Server",
|
||||||
"preLaunchTask": "CMake: build",
|
"preLaunchTask": "CMake: build server",
|
||||||
"cwd": "${workspaceFolder}/build"
|
"cwd": "${workspaceFolder}/build"
|
||||||
},
|
},
|
||||||
// useful for cross debugging the windows (wine) client
|
// useful for cross debugging the windows (wine) client
|
||||||
|
|
Loading…
Reference in a new issue