Merge pull request #43 from kbwo/fix/data-structure

Change adapterCommand schema
This commit is contained in:
Kodai Kabasawa 2024-10-30 23:43:36 +09:00 committed by GitHub
commit 7da5b98850
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 237 additions and 221 deletions

3
demo/.helix/config.toml Normal file
View file

@ -0,0 +1,3 @@
[editor.soft-wrap]
enable = true
max-wrap = 25 # increase value to reduce forced mid-word wrapping

View file

@ -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"]
}
}
}
}

View file

@ -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",