Skip to content

Commit

Permalink
Use enums for display controls
Browse files Browse the repository at this point in the history
  • Loading branch information
firelizzard18 committed Nov 16, 2024
1 parent 5533a5e commit 18ef29c
Showing 1 changed file with 38 additions and 4 deletions.
42 changes: 38 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,53 @@
"type": "boolean",
"default": false,
"scope": "resource",
"markdownDescription": "Show files\n - `false` - tests are nested within packages:\n - foo (package)\n - TestFoo\n - `true` - test are nested within files:\n - foo (package)\n - test_foo.go\n - TestFoo"
"enum": [
false,
true
],
"enumItemLabels": [
"Tests are contained within packages",
"Tests are contained within files"
],
"markdownEnumDescriptions": [
"- pkg\n - TestFoo",
"- pkg\n - foo_test.go\n - TestFoo"
]
},
"exp-vscode-go.testExplorer.nestPackages": {
"type": "boolean",
"default": false,
"scope": "resource",
"markdownDescription": "Nest packages\n - `false` - packages are siblings:\n - example.com (module)\n - foo (package)\n - foo/bar (package)\n - `true` - packages are nested:\n - example.com (module)\n - foo (package)\n - bar (package)\n - Directories that are not packages are ignored regardless of this setting. If\n `foo` is not a package, foo/bar will not be nested:\n - example.com (module)\n - foo/bar (package)"
"markdownDescription": "Directories that are not packages are always ignored. If `foo` is not a package, foo/bar will not be nested regardless of this setting:\n - example.com\n - foo/bar",
"enum": [
false,
true
],
"enumItemLabels": [
"Packages are siblings",
"Packages are nested"
],
"markdownEnumDescriptions": [
"- example.com\n - foo\n - foo/bar",
"- example.com\n - foo\n - bar"
]
},
"exp-vscode-go.testExplorer.nestSubtests": {
"type": "boolean",
"default": true,
"scope": "resource",
"markdownDescription": "Nest subtests\n - `true` - subtests are nested:\n - TestFoo\n - Bar\n - Baz\n - `false` - all tests are siblings\n - TestFoo\n - TestFoo/Bar\n - TestFoo/Bar/Baz"
"enum": [
false,
true
],
"enumItemLabels": [
"Subtests are siblings",
"Subtests are nested"
],
"markdownEnumDescriptions": [
"- TestFoo\n - Bar\n - Baz",
"- TestFoo\n- TestFoo/Bar\n- TestFoo/Bar/Baz"
]
},
"exp-vscode-go.testExplorer.codeLens": {
"type": "string",
Expand Down Expand Up @@ -301,4 +335,4 @@
"node-html-parser": "^6.1.13",
"tree-kill": "^1.2.2"
}
}
}

0 comments on commit 18ef29c

Please sign in to comment.