From 2492300860bc8d58013520b5f27518e886d19216 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 16 Mar 2020 21:11:40 +0000 Subject: context (16mar20) git-svn-id: svn://tug.org/texlive/trunk@54364 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/context/data/vscode/settings.json | 2 +- Master/texmf-dist/context/data/vscode/tasks.json | 73 ++++++++++++++++++++++ .../context/data/vscode/vscode-context.cmd | 2 +- 3 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 Master/texmf-dist/context/data/vscode/tasks.json (limited to 'Master/texmf-dist/context') diff --git a/Master/texmf-dist/context/data/vscode/settings.json b/Master/texmf-dist/context/data/vscode/settings.json index f2c9ddf3251..89f43520ec5 100644 --- a/Master/texmf-dist/context/data/vscode/settings.json +++ b/Master/texmf-dist/context/data/vscode/settings.json @@ -23,7 +23,7 @@ "workbench.colorTheme": "ConTeXt", // "[context.pdf]": { "files.encoding": "cp1252"}, "terminal.integrated.fontSize": 10, - "terminal.integrated.rendererType": "dom", + "terminal.integrated.rendererType": "canvas", "workbench.colorCustomizations": { "terminal.ansiBlack": "#000000", "terminal.ansiWhite": "#FFFFFF", diff --git a/Master/texmf-dist/context/data/vscode/tasks.json b/Master/texmf-dist/context/data/vscode/tasks.json new file mode 100644 index 00000000000..13f75c18839 --- /dev/null +++ b/Master/texmf-dist/context/data/vscode/tasks.json @@ -0,0 +1,73 @@ +{ + "name" : "context", + "tasks" : [ + { + "command" : "context --autogenerate --autopdf ${file}", + "group" : "build", + "label" : "process tex file", + "presentation" : { + "clear" : true, + "echo" : true, + "focus" : false, + "panel" : "shared", + "reveal" : "always", + "showReuseMessage" : false + }, + "type" : "shell", + "windows" : { + "command" : "chcp 65001 ; context.exe --autogenerate --autopdf ${file}" + } + }, + { + "command" : "mtxrun --autogenerate --script check ${file}", + "group" : "build", + "label" : "check tex file", + "presentation" : { + "clear" : true, + "echo" : true, + "focus" : false, + "panel" : "shared", + "reveal" : "always", + "showReuseMessage" : false + }, + "type" : "shell", + "windows" : { + "command" : "chcp 65001 ; mtxrun.exe --autogenerate --script check ${file}" + } + }, + { + "command" : "mtxrun --script fonts --reload --force", + "group" : "build", + "label" : "identify fonts", + "presentation" : { + "clear" : true, + "echo" : true, + "focus" : false, + "panel" : "shared", + "reveal" : "always", + "showReuseMessage" : false + }, + "type" : "shell", + "windows" : { + "command" : "chcp 65001 ; mtxrun.exe --script fonts --reload --force" + } + }, + { + "command" : "mtxrun --script ${file}", + "group" : "build", + "label" : "process lua file", + "presentation" : { + "clear" : true, + "echo" : true, + "focus" : false, + "panel" : "shared", + "reveal" : "always", + "showReuseMessage" : false + }, + "type" : "shell", + "windows" : { + "command" : "chcp 65001 ; mtxrun.exe --script ${file}" + } + } + ] +} \ No newline at end of file diff --git a/Master/texmf-dist/context/data/vscode/vscode-context.cmd b/Master/texmf-dist/context/data/vscode/vscode-context.cmd index c6e1a89ce73..00360e73477 100644 --- a/Master/texmf-dist/context/data/vscode/vscode-context.cmd +++ b/Master/texmf-dist/context/data/vscode/vscode-context.cmd @@ -4,4 +4,4 @@ rem chcp 65001 rem I need to figure out how to detach the instance -start "vs code context" code --ignore-gpu-blacklist --reuse-window --extensions-dir %~dp0\extensions --install-extension context %* 2>&1 nul +start "vs code context" code --reuse-window --extensions-dir %~dp0\extensions --install-extension context %* 2>&1 nul -- cgit v1.2.3