mirror of
https://github.com/kbwo/testing-language-server.git
synced 2025-08-03 23:28:14 +00:00
Merge pull request #43 from kbwo/fix/data-structure
Change adapterCommand schema
This commit is contained in:
commit
7da5b98850
6 changed files with 237 additions and 221 deletions
3
demo/.helix/config.toml
Normal file
3
demo/.helix/config.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
[editor.soft-wrap]
|
||||
enable = true
|
||||
max-wrap = 25 # increase value to reduce forced mid-word wrapping
|
|
@ -6,70 +6,54 @@
|
|||
"filetypes": ["rust", "javascript", "go", "typescript", "php"],
|
||||
"initializationOptions": {
|
||||
"adapterCommand": {
|
||||
"cargo-test": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=cargo-test"],
|
||||
"include": ["/**/src/**/*.rs"],
|
||||
"exclude": ["/**/target/**"]
|
||||
}
|
||||
],
|
||||
"cargo-nextest": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=cargo-nextest"],
|
||||
"include": ["/**/src/**/*.rs"],
|
||||
"exclude": ["/**/target/**"]
|
||||
}
|
||||
],
|
||||
"jest": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=jest"],
|
||||
"include": ["/jest/*.js"],
|
||||
"exclude": ["/jest/**/node_modules/**/*"]
|
||||
}
|
||||
],
|
||||
"vitest": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=vitest"],
|
||||
"include": ["/vitest/*.test.ts", "/vitest/config/**/*.test.ts"],
|
||||
"exclude": ["/vitest/**/node_modules/**/*"]
|
||||
}
|
||||
],
|
||||
"deno": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=deno"],
|
||||
"include": ["/deno/*.ts"],
|
||||
"exclude": []
|
||||
}
|
||||
],
|
||||
"go": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=go-test"],
|
||||
"include": ["/**/*.go"],
|
||||
"exclude": []
|
||||
}
|
||||
],
|
||||
"node-test": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=node-test"],
|
||||
"include": ["/node-test/*.test.js"],
|
||||
"exclude": []
|
||||
}
|
||||
],
|
||||
"phpunit": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=phpunit"],
|
||||
"include": ["/**/*Test.php"],
|
||||
"exclude": ["/phpunit/vendor/**/*.php"]
|
||||
}
|
||||
]
|
||||
"cargo-test": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=cargo-test"],
|
||||
"include": ["/**/src/**/*.rs"],
|
||||
"exclude": ["/**/target/**"]
|
||||
},
|
||||
"cargo-nextest": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=cargo-nextest"],
|
||||
"include": ["/**/src/**/*.rs"],
|
||||
"exclude": ["/**/target/**"]
|
||||
},
|
||||
"jest": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=jest"],
|
||||
"include": ["/jest/*.js"],
|
||||
"exclude": ["/jest/**/node_modules/**/*"]
|
||||
},
|
||||
"vitest": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=vitest"],
|
||||
"include": ["/vitest/*.test.ts", "/vitest/config/**/*.test.ts"],
|
||||
"exclude": ["/vitest/**/node_modules/**/*"]
|
||||
},
|
||||
"deno": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=deno"],
|
||||
"include": ["/deno/*.ts"],
|
||||
"exclude": []
|
||||
},
|
||||
"go": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=go-test"],
|
||||
"include": ["/**/*.go"],
|
||||
"exclude": []
|
||||
},
|
||||
"node-test": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=node-test"],
|
||||
"include": ["/node-test/*.test.js"],
|
||||
"exclude": []
|
||||
},
|
||||
"phpunit": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=phpunit"],
|
||||
"include": ["/**/*Test.php"],
|
||||
"exclude": ["/phpunit/vendor/**/*.php"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
98
demo/.vscode/settings.json
vendored
98
demo/.vscode/settings.json
vendored
|
@ -2,62 +2,48 @@
|
|||
"testing.enable": true,
|
||||
"filetypes": ["rust", "javascript", "go", "typescript", "php"],
|
||||
"testing.adapterCommand": {
|
||||
"cargo-nextest": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=cargo-nextest"],
|
||||
"include": ["/**/src/**/*.rs"],
|
||||
"exclude": ["/**/target/**"]
|
||||
}
|
||||
],
|
||||
"jest": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=jest"],
|
||||
"include": ["/jest/*.js"],
|
||||
"exclude": ["/jest/**/node_modules/**/*"]
|
||||
}
|
||||
],
|
||||
"vitest": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=vitest"],
|
||||
"include": ["/vitest/*.test.ts", "/vitest/config/**/*.test.ts"],
|
||||
"exclude": ["/vitest/**/node_modules/**/*"]
|
||||
}
|
||||
],
|
||||
"deno": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=deno"],
|
||||
"include": ["/deno/*.ts"],
|
||||
"exclude": []
|
||||
}
|
||||
],
|
||||
"go": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=go-test"],
|
||||
"include": ["/**/*.go"],
|
||||
"exclude": []
|
||||
}
|
||||
],
|
||||
"node-test": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=node-test"],
|
||||
"include": ["/node-test/*.test.js"],
|
||||
"exclude": []
|
||||
}
|
||||
],
|
||||
"phpunit": [
|
||||
{
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=phpunit"],
|
||||
"include": ["/**/*Test.php"],
|
||||
"exclude": ["/phpunit/vendor/**/*.php"]
|
||||
}
|
||||
]
|
||||
"cargo-nextest": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=cargo-nextest"],
|
||||
"include": ["/**/src/**/*.rs"],
|
||||
"exclude": ["/**/target/**"]
|
||||
},
|
||||
"jest": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=jest"],
|
||||
"include": ["/jest/*.js"],
|
||||
"exclude": ["/jest/**/node_modules/**/*"]
|
||||
},
|
||||
"vitest": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=vitest"],
|
||||
"include": ["/vitest/*.test.ts", "/vitest/config/**/*.test.ts"],
|
||||
"exclude": ["/vitest/**/node_modules/**/*"]
|
||||
},
|
||||
"deno": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=deno"],
|
||||
"include": ["/deno/*.ts"],
|
||||
"exclude": []
|
||||
},
|
||||
"go": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=go-test"],
|
||||
"include": ["/**/*.go"],
|
||||
"exclude": []
|
||||
},
|
||||
"node-test": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=node-test"],
|
||||
"include": ["/node-test/*.test.js"],
|
||||
"exclude": []
|
||||
},
|
||||
"phpunit": {
|
||||
"path": "testing-ls-adapter",
|
||||
"extra_arg": ["--test-kind=phpunit"],
|
||||
"include": ["/**/*Test.php"],
|
||||
"exclude": ["/phpunit/vendor/**/*.php"]
|
||||
}
|
||||
},
|
||||
"testing.enableWorkspaceDiagnostics": true,
|
||||
"testing.server.path": "testing-language-server",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue