From f332a0a119fa1ceb8fcbfb7ad9a7187a4d04fe0f Mon Sep 17 00:00:00 2001 From: KingOfDog Date: Wed, 14 Sep 2022 07:52:15 +0000 Subject: [PATCH] Use docker commands by default --- templates/markdown/tasks.json | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/templates/markdown/tasks.json b/templates/markdown/tasks.json index e95509b..7d058a7 100644 --- a/templates/markdown/tasks.json +++ b/templates/markdown/tasks.json @@ -6,10 +6,8 @@ { "label": "latexmk", "type": "shell", - "command": "./build.sh pandoc", - "windows": { - "command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest ./build.sh pandoc" - }, + // "command": "./build.sh pandoc", + "command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest ./build.sh pandoc", "group": { "kind": "build", "isDefault": true @@ -19,20 +17,16 @@ { "label": "clean", "type": "shell", - "command": "./build.sh clean", - "windows": { - "command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest ./build.sh clean" - }, + // "command": "./build.sh clean", + "command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest ./build.sh clean", "group": "none", "problemMatcher": [] }, { "label": "wordcount", "type": "shell", - "command": "pandoc --lua-filter=wordcount.lua chapter/out.md", - "windows": { - "command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest pandoc --lua-filter=/work/wordcount.lua /work/chapter/out.md" - }, + // "command": "pandoc --lua-filter=wordcount.lua chapter/out.md", + "command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest pandoc --lua-filter=/work/wordcount.lua /work/chapter/out.md", "group": "none", "problemMatcher": [] },