mirror of
https://github.com/typst/typst
synced 2025-05-13 12:36:23 +08:00
- Separate refresh button which does not rerun the test - Shows stdout and stderr of commands in the preview
88 lines
2.4 KiB
JSON
88 lines
2.4 KiB
JSON
{
|
|
"name": "typst-test-helper",
|
|
"displayName": "Typst Test Helper",
|
|
"description": "Helps to run, compare and approve Typst tests.",
|
|
"version": "0.0.1",
|
|
"engines": {
|
|
"vscode": "^1.53.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"activationEvents": [
|
|
"onCommand:ShortcutMenuBar.testOpen",
|
|
"onCommand:ShortcutMenuBar.testRefresh",
|
|
"onCommand:ShortcutMenuBar.testRerun",
|
|
"onCommand:ShortcutMenuBar.testApprove"
|
|
],
|
|
"main": "./extension.js",
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "ShortcutMenuBar.testOpen",
|
|
"title": "Open test output",
|
|
"category": "ShortcutMenuBar",
|
|
"icon": {
|
|
"light": "images/open-light.svg",
|
|
"dark": "images/open-dark.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "ShortcutMenuBar.testRefresh",
|
|
"title": "Refresh preview",
|
|
"category": "ShortcutMenuBar",
|
|
"icon": {
|
|
"light": "images/refresh-light.svg",
|
|
"dark": "images/refresh-dark.svg"
|
|
}
|
|
},
|
|
{
|
|
"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",
|
|
"dark": "images/approve-dark.svg"
|
|
}
|
|
}
|
|
],
|
|
"menus": {
|
|
"editor/title": [
|
|
{
|
|
"when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/",
|
|
"command": "ShortcutMenuBar.testOpen",
|
|
"group": "navigation@0"
|
|
},
|
|
{
|
|
"when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/",
|
|
"command": "ShortcutMenuBar.testRefresh",
|
|
"group": "navigation@1"
|
|
},
|
|
{
|
|
"when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/",
|
|
"command": "ShortcutMenuBar.testRerun",
|
|
"group": "navigation@2"
|
|
},
|
|
{
|
|
"when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/",
|
|
"command": "ShortcutMenuBar.testApprove",
|
|
"group": "navigation@3"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@types/vscode": "^1.53.0",
|
|
"@types/node": "^12.11.7"
|
|
}
|
|
}
|