From: Josh Simmons Date: Sat, 18 May 2024 08:49:09 +0000 (+0200) Subject: meta: Add vscode workspace settings X-Git-Url: https://git.nega.tv//gitweb.cgi?a=commitdiff_plain;h=363c94c905384cb3bdc9164b8e8d4e73fb459d4d;p=josh%2Fnarcissus meta: Add vscode workspace settings --- diff --git a/.gitignore b/.gitignore index 5d6d32f..160ca56 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ target/ -.vscode perf.data perf.data.old diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..5b2dd26 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,424 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "Debug executable 'shark'", + "cargo": { + "args": [ + "build", + "--bin=shark", + "--package=shark" + ], + "filter": { + "name": "shark", + "kind": "bin" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in executable 'shark'", + "cargo": { + "args": [ + "test", + "--no-run", + "--bin=shark", + "--package=shark" + ], + "filter": { + "name": "shark", + "kind": "bin" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'narcissus-app'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=narcissus-app" + ], + "filter": { + "name": "narcissus-app", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'narcissus-core'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=narcissus-core" + ], + "filter": { + "name": "narcissus-core", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'sdl2-sys'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=sdl2-sys" + ], + "filter": { + "name": "sdl2-sys", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'narcissus-font'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=narcissus-font" + ], + "filter": { + "name": "narcissus-font", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'stb_truetype-sys'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=stb_truetype-sys" + ], + "filter": { + "name": "stb_truetype-sys", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'narcissus-gpu'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=narcissus-gpu" + ], + "filter": { + "name": "narcissus-gpu", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'vulkan-sys'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=vulkan-sys" + ], + "filter": { + "name": "vulkan-sys", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug example 'triangle'", + "cargo": { + "args": [ + "build", + "--example=triangle", + "--package=vulkan-sys" + ], + "filter": { + "name": "triangle", + "kind": "example" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in example 'triangle'", + "cargo": { + "args": [ + "test", + "--no-run", + "--example=triangle", + "--package=vulkan-sys" + ], + "filter": { + "name": "triangle", + "kind": "example" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'narcissus-image'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=narcissus-image" + ], + "filter": { + "name": "narcissus-image", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'stb_image-sys'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=stb_image-sys" + ], + "filter": { + "name": "stb_image-sys", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'narcissus-maths'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=narcissus-maths" + ], + "filter": { + "name": "narcissus-maths", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug integration test 'exhaustive_f32'", + "cargo": { + "args": [ + "test", + "--no-run", + "--test=exhaustive_f32", + "--package=narcissus-maths" + ], + "filter": { + "name": "exhaustive_f32", + "kind": "test" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug integration test 'next_after_f32'", + "cargo": { + "args": [ + "test", + "--no-run", + "--test=next_after_f32", + "--package=narcissus-maths" + ], + "filter": { + "name": "next_after_f32", + "kind": "test" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'renderdoc-sys'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=renderdoc-sys" + ], + "filter": { + "name": "renderdoc-sys", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'shark-shaders'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=shark-shaders" + ], + "filter": { + "name": "shark-shaders", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'blake3-smol'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=blake3-smol" + ], + "filter": { + "name": "blake3-smol", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'sqlite-sys'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=sqlite-sys" + ], + "filter": { + "name": "sqlite-sys", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'narcissus-sqlite'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=narcissus-sqlite" + ], + "filter": { + "name": "narcissus-sqlite", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'narcissus-world'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=narcissus-world" + ], + "filter": { + "name": "narcissus-world", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..1d0db7c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ + +{ + "files.associations": { + "**/shaders/*.h": "plaintext", + } +} \ No newline at end of file