diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-02-24 18:34:14 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-02-24 18:34:14 +0100 |
| commit | e7cc35073f95800a3dc53cfa6b7f924f47ac618c (patch) | |
| tree | 1db1550f1750c5c1ff02fcdb8593b2a841654f81 /tools/test-helper/package.json | |
| parent | 7092c504474eca25ba456db606de11402ea1e8ca (diff) | |
Tune test extension ðŸ›
- Separate refresh button which does not rerun the test
- Shows stdout and stderr of commands in the preview
Diffstat (limited to 'tools/test-helper/package.json')
| -rw-r--r-- | tools/test-helper/package.json | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/tools/test-helper/package.json b/tools/test-helper/package.json index 55065838..157df0cb 100644 --- a/tools/test-helper/package.json +++ b/tools/test-helper/package.json @@ -10,15 +10,16 @@ "Other" ], "activationEvents": [ - "onCommand:ShortcutMenuBar.openTestOutput", - "onCommand:ShortcutMenuBar.approveTestOutput", - "onCommand:ShortcutMenuBar.refreshTestOutput" + "onCommand:ShortcutMenuBar.testOpen", + "onCommand:ShortcutMenuBar.testRefresh", + "onCommand:ShortcutMenuBar.testRerun", + "onCommand:ShortcutMenuBar.testApprove" ], "main": "./extension.js", "contributes": { "commands": [ { - "command": "ShortcutMenuBar.openTestOutput", + "command": "ShortcutMenuBar.testOpen", "title": "Open test output", "category": "ShortcutMenuBar", "icon": { @@ -27,8 +28,8 @@ } }, { - "command": "ShortcutMenuBar.refreshTestOutput", - "title": "Refresh test output", + "command": "ShortcutMenuBar.testRefresh", + "title": "Refresh preview", "category": "ShortcutMenuBar", "icon": { "light": "images/refresh-light.svg", @@ -36,8 +37,17 @@ } }, { - "command": "ShortcutMenuBar.approveTestOutput", - "title": "Approve test output", + "command": "ShortcutMenuBar.testRerun", + "title": "Rerun test", + "category": "ShortcutMenuBar", + "icon": { + "light": "images/rerun-light.svg", + "dark": "images/rerun-dark.svg" + } + }, + { + "command": "ShortcutMenuBar.testApprove", + "title": "Approve output", "category": "ShortcutMenuBar", "icon": { "light": "images/approve-light.svg", @@ -49,17 +59,22 @@ "editor/title": [ { "when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/", - "command": "ShortcutMenuBar.openTestOutput", + "command": "ShortcutMenuBar.testOpen", "group": "navigation@0" }, { "when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/", - "command": "ShortcutMenuBar.refreshTestOutput", + "command": "ShortcutMenuBar.testRefresh", + "group": "navigation@1" + }, + { + "when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/", + "command": "ShortcutMenuBar.testRerun", "group": "navigation@2" }, { "when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/", - "command": "ShortcutMenuBar.approveTestOutput", + "command": "ShortcutMenuBar.testApprove", "group": "navigation@3" } ] |
