summaryrefslogtreecommitdiff
path: root/tools/test-helper
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-01-30 14:36:15 +0100
committerGitHub <noreply@github.com>2025-01-30 13:36:15 +0000
commitbe1fa91a00a9bff6c5eb9744266f252b8cc23fe4 (patch)
tree398667e7da4e44d910dbf69f4d6b6d18f9141e0c /tools/test-helper
parent7a0d7092bc00ee4f5c0d4887ea3ccf3fbceb2426 (diff)
Modular, multi-threaded, transitioning plugins (#5779)
Diffstat (limited to 'tools/test-helper')
-rw-r--r--tools/test-helper/package.json209
1 files changed, 106 insertions, 103 deletions
diff --git a/tools/test-helper/package.json b/tools/test-helper/package.json
index d34213fb..08a60fa3 100644
--- a/tools/test-helper/package.json
+++ b/tools/test-helper/package.json
@@ -1,104 +1,107 @@
{
- "name": "typst-test-helper",
- "publisher": "typst",
- "displayName": "Typst Test Helper",
- "description": "Helps to run, compare and update Typst tests.",
- "version": "0.0.1",
- "categories": [
- "Other"
- ],
- "activationEvents": [
- "workspaceContains:tests/suite/playground.typ"
- ],
- "main": "./dist/extension.js",
- "contributes": {
- "commands": [
- {
- "command": "typst-test-helper.refreshFromPreview",
- "title": "Refresh preview",
- "category": "Typst Test Helper",
- "icon": "$(refresh)"
- },
- {
- "command": "typst-test-helper.runFromPreview",
- "title": "Run test",
- "category": "Typst Test Helper",
- "icon": "$(debug-start)",
- "enablement": "typst-test-helper.runButtonEnabled"
- },
- {
- "command": "typst-test-helper.saveFromPreview",
- "title": "Run and save reference output",
- "category": "Typst Test Helper",
- "icon": "$(save)",
- "enablement": "typst-test-helper.runButtonEnabled"
- },
- {
- "command": "typst-test-helper.copyImageFilePathFromPreviewContext",
- "title": "Copy image file path",
- "category": "Typst Test Helper"
- },
- {
- "command": "typst-test-helper.increaseResolution",
- "title": "Render at higher resolution",
- "category": "Typst Test Helper",
- "icon": "$(zoom-in)",
- "enablement": "typst-test-helper.runButtonEnabled"
- },
- {
- "command": "typst-test-helper.decreaseResolution",
- "title": "Render at lower resolution",
- "category": "Typst Test Helper",
- "icon": "$(zoom-out)",
- "enablement": "typst-test-helper.runButtonEnabled"
- }
- ],
- "menus": {
- "editor/title": [
- {
- "when": "activeWebviewPanelId == typst-test-helper.preview",
- "command": "typst-test-helper.refreshFromPreview",
- "group": "navigation@1"
- },
- {
- "when": "activeWebviewPanelId == typst-test-helper.preview",
- "command": "typst-test-helper.runFromPreview",
- "group": "navigation@2"
- },
- {
- "when": "activeWebviewPanelId == typst-test-helper.preview",
- "command": "typst-test-helper.saveFromPreview",
- "group": "navigation@3"
- },
- {
- "when": "activeWebviewPanelId == typst-test-helper.preview",
- "command": "typst-test-helper.increaseResolution",
- "group": "navigation@4"
- },
- {
- "when": "activeWebviewPanelId == typst-test-helper.preview",
- "command": "typst-test-helper.decreaseResolution",
- "group": "navigation@4"
- }
- ],
- "webview/context": [
- {
- "command": "typst-test-helper.copyImageFilePathFromPreviewContext",
- "when": "webviewId == typst-test-helper.preview && (webviewSection == png || webviewSection == ref)"
- }
- ]
- }
- },
- "scripts": {
- "build": "tsc -p ./",
- "watch": "tsc -watch -p ./"
- },
- "devDependencies": {
- "@types/node": "18.x",
- "@types/vscode": "^1.88.0",
- "typescript": "^5.3.3"
- },
- "engines": {
- "vscode": "^1.88.0"
- }
-}
+ "name": "typst-test-helper",
+ "publisher": "typst",
+ "displayName": "Typst Test Helper",
+ "description": "Helps to run, compare and update Typst tests.",
+ "version": "0.0.1",
+ "categories": [
+ "Other"
+ ],
+ "activationEvents": [
+ "workspaceContains:tests/suite/playground.typ"
+ ],
+ "main": "./dist/extension.js",
+ "contributes": {
+ "commands": [
+ {
+ "command": "typst-test-helper.refreshFromPreview",
+ "title": "Refresh preview",
+ "category": "Typst Test Helper",
+ "icon": "$(refresh)"
+ },
+ {
+ "command": "typst-test-helper.runFromPreview",
+ "title": "Run test",
+ "category": "Typst Test Helper",
+ "icon": "$(debug-start)",
+ "enablement": "typst-test-helper.runButtonEnabled"
+ },
+ {
+ "command": "typst-test-helper.saveFromPreview",
+ "title": "Run and save reference output",
+ "category": "Typst Test Helper",
+ "icon": "$(save)",
+ "enablement": "typst-test-helper.runButtonEnabled"
+ },
+ {
+ "command": "typst-test-helper.copyImageFilePathFromPreviewContext",
+ "title": "Copy image file path",
+ "category": "Typst Test Helper"
+ },
+ {
+ "command": "typst-test-helper.increaseResolution",
+ "title": "Render at higher resolution",
+ "category": "Typst Test Helper",
+ "icon": "$(zoom-in)",
+ "enablement": "typst-test-helper.runButtonEnabled"
+ },
+ {
+ "command": "typst-test-helper.decreaseResolution",
+ "title": "Render at lower resolution",
+ "category": "Typst Test Helper",
+ "icon": "$(zoom-out)",
+ "enablement": "typst-test-helper.runButtonEnabled"
+ }
+ ],
+ "menus": {
+ "editor/title": [
+ {
+ "when": "activeWebviewPanelId == typst-test-helper.preview",
+ "command": "typst-test-helper.refreshFromPreview",
+ "group": "navigation@1"
+ },
+ {
+ "when": "activeWebviewPanelId == typst-test-helper.preview",
+ "command": "typst-test-helper.runFromPreview",
+ "group": "navigation@2"
+ },
+ {
+ "when": "activeWebviewPanelId == typst-test-helper.preview",
+ "command": "typst-test-helper.saveFromPreview",
+ "group": "navigation@3"
+ },
+ {
+ "when": "activeWebviewPanelId == typst-test-helper.preview",
+ "command": "typst-test-helper.increaseResolution",
+ "group": "navigation@4"
+ },
+ {
+ "when": "activeWebviewPanelId == typst-test-helper.preview",
+ "command": "typst-test-helper.decreaseResolution",
+ "group": "navigation@4"
+ }
+ ],
+ "webview/context": [
+ {
+ "command": "typst-test-helper.copyImageFilePathFromPreviewContext",
+ "when": "webviewId == typst-test-helper.preview && (webviewSection == png || webviewSection == ref)"
+ }
+ ]
+ }
+ },
+ "scripts": {
+ "build": "tsc -p ./",
+ "watch": "tsc -watch -p ./"
+ },
+ "devDependencies": {
+ "@types/node": "18.x",
+ "@types/vscode": "^1.88.0",
+ "typescript": "^5.3.3"
+ },
+ "engines": {
+ "vscode": "^1.88.0"
+ },
+ "__metadata": {
+ "size": 35098973
+ }
+} \ No newline at end of file