chore: add vscode settings for debugging with vscode-tesitng-ls

This commit is contained in:
kbwo 2024-09-23 17:55:04 +09:00
parent 9bb28ea592
commit 8f4097aab3

60
demo/.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,60 @@
{
"testing.enable": true,
"testing.fileTypes": ["rust"],
"testing.adapterCommand": {
"cargo-nextest": [
{
"path": "testing-ls-adapter",
"extra_args": ["--test-kind=cargo-nextest"],
"include_patterns": ["/**/src/**/*.rs"],
"exclude_patterns": ["/**/target/**"]
}
],
"jest": [
{
"path": "testing-ls-adapter",
"extra_args": ["--test-kind=jest"],
"include_patterns": ["/jest/*.js"],
"exclude_patterns": ["/jest/**/node_modules/**/*"]
}
],
"vitest": [
{
"path": "testing-ls-adapter",
"extra_args": ["--test-kind=vitest"],
"include_patterns": [
"/vitest/*.test.ts",
"/vitest/config/**/*.test.ts"
],
"exclude_patterns": ["/vitest/**/node_modules/**/*"]
}
],
"deno": [
{
"path": "testing-ls-adapter",
"extra_args": ["--test-kind=deno"],
"include_patterns": ["/deno/*.ts"],
"exclude_patterns": []
}
],
"go": [
{
"path": "testing-ls-adapter",
"extra_args": ["--test-kind=go-test"],
"include_patterns": ["/**/*.go"],
"exclude_patterns": []
}
],
"phpunit": [
{
"path": "testing-ls-adapter",
"extra_args": ["--test-kind=phpunit"],
"include_patterns": ["/**/*Test.php"],
"exclude_patterns": ["/phpunit/vendor/**/*.php"]
}
]
},
"testing.enableWorkspaceDiagnostics": true,
"testing.server.path": "testing-language-server",
"testing.trace.server": "verbose"
}