actboy168 / vscode-tasks Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Keybindings were set to run taskboy168.task.X commands.
After update to VSCode 1.45.0 pressing a set keybinding causes a 'command actboy168.task.X' not found error.
How it's possible to fix this?
The tasks configuration file was used tasks.json.zip
About VSCode
Version: 1.45.0
Commit: d69a79b73808559a91206d73d7717ff5f798f23c
Date: 2020-05-07T15:57:33.467Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 17.7.0
Type: Performance Issue
When this extension is enabled, loading a code workspace with many repos becomes way slower. I don't think it should impact so much in load time; there's probably some bottleneck.
Extension version: 0.13.2
VS Code version: Code 1.77.3 (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:16:52.732Z)
OS version: Linux x64 6.2.9-300.fc38.x86_64
Modes:
Sandboxed: No
Item | Value |
---|---|
CPUs | AMD Ryzen 7 5700U with Radeon Graphics (16 x 4046) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: disabled_software video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
Load (avg) | 4, 3, 3 |
Memory (System) | 14.99GB (8.55GB free) |
Process Argv | --unity-launch --crash-reporter-id e128b671-8216-478b-b40b-73378743f4d6 |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | gnome |
XDG_CURRENT_DESKTOP | GNOME |
XDG_SESSION_DESKTOP | gnome |
XDG_SESSION_TYPE | wayland |
CPU % Mem MB PID Process
0 169 4064 code main
0 31 4132 zygote
0 154 4306 gpu-process
0 31 4133 zygote
0 0 4145 zygote
0 77 267307 window [4] (Notificador de problemas)
0 61 4375 utility-network-service
0 399 4407 window [1] (doodba.test16-odoo (área de trabajo) - Visual Studio Code)
0 107 4669 shared-process
0 77 4732 ptyHost
0 0 267334 /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
0 107 261863 fileWatcher [1]
3 338 261874 extensionHost [1]
0 123 262839 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /var/home/yajo/.vscode/extensions/streetsidesoftware.code-spell-checker-2.20.4/packages/_server/dist/main.js --node-ipc --clientProcessId=261874)
0 46 262869 /var/home/yajo/.nix-profile/bin/python3 /var/home/yajo/.vscode/extensions/ms-python.python-2023.6.1/pythonFiles/run-jedi-language-server.py
0 61 262875 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /var/home/yajo/.vscode/extensions/ms-azuretools.vscode-docker-1.25.0/dist/dockerfile-language-server-nodejs/lib/server.js --node-ipc --node-ipc --clientProcessId=261874)
0 61 262876 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /var/home/yajo/.vscode/extensions/ms-azuretools.vscode-docker-1.25.0/dist/compose-language-service/lib/server.js --node-ipc --node-ipc --clientProcessId=261874)
0 46 266281 /var/home/yajo/.nix-profile/bin/python3 /var/home/yajo/.vscode/extensions/ms-python.black-formatter-2023.2.0/bundled/tool/lsp_server.py
0 0 267083 git fetch
0 0 267084 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/account-analytic.git
0 0 267085 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/account-analytic.git
0 0 267087 git fetch
0 0 267088 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/account-financial-reporting.git
0 0 267089 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/account-financial-reporting.git
0 0 267091 git fetch
0 0 267092 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/account-financial-tools.git
0 0 267093 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/account-financial-tools.git
0 0 267095 git fetch
0 0 267096 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/account-invoicing.git
0 0 267097 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/account-invoicing.git
0 0 267099 git fetch
0 0 267100 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/account-payment.git
0 0 267101 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/account-payment.git
0 0 267103 git fetch
0 0 267104 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/bank-payment.git
0 0 267105 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/bank-payment.git
0 0 267107 git fetch
0 0 267108 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/bank-statement-import.git
0 0 267109 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/bank-statement-import.git
0 0 267111 git fetch
0 0 267112 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/community-data-files.git
0 0 267113 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/community-data-files.git
0 0 267115 git fetch
0 0 267116 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/crm.git
0 0 267117 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/crm.git
0 0 267119 git fetch
0 0 267120 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/design-themes.git
0 0 267121 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/design-themes.git
0 0 267123 git fetch
0 0 267124 /usr/libexec/git-core/git remote-https moduon-readonly https://bot:[email protected]/moduon/forks/enterprise.git
0 0 267125 /usr/libexec/git-core/git-remote-https moduon-readonly https://bot:[email protected]/moduon/forks/enterprise.git
0 0 267126 git fetch
0 0 267128 /usr/libexec/git-core/git remote-https oca https://github.com/OCA/hr.git
0 0 267129 /usr/libexec/git-core/git-remote-https oca https://github.com/OCA/hr.git
0 0 267131 git fetch
0 0 267132 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/l10n-spain.git
0 0 267133 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/l10n-spain.git
0 0 267135 git fetch
0 0 267136 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/mis-builder.git
0 0 267137 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/mis-builder.git
0 0 267139 git fetch
0 0 267140 /usr/libexec/git-core/git remote-https origin https://gitlab.com/moduon/moduon-odoo-addons.git
0 0 267141 /usr/libexec/git-core/git-remote-https origin https://gitlab.com/moduon/moduon-odoo-addons.git
0 0 267143 git fetch
0 0 267144 /usr/libexec/git-core/git remote-https moduon-readonly https://bot:[email protected]/moduon/moduon-odoo-private-addons.git
0 0 267145 /usr/libexec/git-core/git-remote-https moduon-readonly https://bot:[email protected]/moduon/moduon-odoo-private-addons.git
0 0 267147 git fetch
0 0 267148 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/multi-company.git
0 0 267149 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/multi-company.git
0 0 267151 git fetch
0 0 267152 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/partner-contact.git
0 0 267153 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/partner-contact.git
0 0 267155 git fetch
0 0 267156 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/project.git
0 0 267157 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/project.git
0 0 267159 git fetch
0 0 267160 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/purchase-workflow.git
0 0 267161 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/purchase-workflow.git
0 0 267163 git fetch
0 0 267164 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/queue.git
0 0 267165 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/queue.git
0 0 267167 git fetch
0 0 267168 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/reporting-engine.git
0 0 267169 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/reporting-engine.git
0 0 267171 git fetch
0 0 267172 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/sale-workflow.git
0 0 267173 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/sale-workflow.git
0 0 267175 git fetch
0 0 267176 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/sale-workflow.git
0 0 267177 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/sale-workflow.git
0 0 267179 git fetch
0 0 267180 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/server-brand.git
0 0 267181 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/server-brand.git
0 0 267183 git fetch
0 0 267184 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/server-tools.git
0 0 267185 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/server-tools.git
0 0 267187 git fetch
0 0 267188 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/server-ux.git
0 0 267189 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/server-ux.git
0 0 267191 git fetch
0 0 267192 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/social.git
0 0 267193 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/social.git
0 0 267195 git fetch
0 0 267196 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/stock-logistics-workflow.git
0 0 267197 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/stock-logistics-workflow.git
0 0 267199 git fetch
0 0 267200 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/web.git
0 0 267201 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/web.git
0 0 267203 git fetch
0 0 267204 /usr/libexec/git-core/git remote-https origin https://github.com/moduon/odoo.git
0 0 267205 /usr/libexec/git-core/git-remote-https origin https://github.com/moduon/odoo.git
0 0 267206 git fetch
0 0 267208 /usr/bin/ssh -o SendEnv=GIT_PROTOCOL -p 30022 [email protected] git-upload-pack '/moduon/customer-projects/test16-odoo.git'
| Window (doodba.test16-odoo (área de trabajo) - Visual Studio Code)
| Folder (account-analytic): 116 files
| File types: po(30) py(19) rst(9) yml(6) xml(5) pot(2) png(2) html(2)
| editorconfig(1) flake8(1)
| Conf files: github-actions(3)
| Folder (account-financial-reporting): 186 files
| File types: py(51) po(31) xml(26) rst(9) yml(6) png(3) pot(2) csv(2)
| html(2) js(2)
| Conf files: github-actions(3)
| Folder (account-financial-tools): 850 files
| File types: po(338) py(128) rst(63) xml(58) png(22) pot(14) html(14)
| csv(7) yml(6) txt(2)
| Conf files: github-actions(3)
| Folder (account-invoicing): 695 files
| File types: po(410) py(69) rst(39) xml(14) pot(9) png(9) html(9) yml(6)
| csv(2) editorconfig(1)
| Conf files: github-actions(3)
| Folder (account-payment): 179 files
| File types: po(91) py(15) rst(11) yml(6) xml(3) pot(2) png(2) html(2)
| editorconfig(1) flake8(1)
| Conf files: github-actions(3)
| Folder (bank-payment): 405 files
| File types: po(130) py(82) xml(38) rst(27) yml(6) pot(6) png(6) html(6)
| csv(3) editorconfig(1)
| Conf files: github-actions(3)
| Folder (bank-statement-import): 21 files
| File types: yml(6) editorconfig(1) flake8(1) gitignore(1) cfg(1)
| yaml(1) pylintrc(1) pylintrc-mandatory(1) md(1)
| setuptools-odoo-make-default-ignore(1)
| Conf files: github-actions(3)
| Folder (community-data-files): 214 files
| File types: py(44) rst(27) xml(13) po(12) yml(6) pot(6) png(6) html(6)
| txt(2) editorconfig(1)
| Conf files: github-actions(3)
| Folder (crm): 224 files
| File types: po(50) py(37) rst(21) xml(14) yml(6) pot(5) png(5) html(5)
| editorconfig(1) flake8(1)
| Conf files: github-actions(3)
| Folder (design-themes): 2708 files
| File types: jpg(1139) xml(374) scss(167) py(126) po(120) svg(75)
| png(72) js(37) pot(28) html(25)
| Conf files:
| Folder (enterprise): more than 20523 files
| File types: po(10474) py(3162) xml(1887) js(643) pot(251) png(146)
| csv(132) svg(122) scss(116) xslt(42)
| Conf files:
| Folder (hr): 377 files
| File types: py(78) po(55) rst(38) xml(25) pot(10) png(10) html(10)
| yml(6) csv(4) txt(2)
| Conf files: github-actions(3)
| Folder (l10n-spain): 1275 files
| File types: po(249) py(241) xml(161) rst(107) csv(29) png(26) pot(22)
| html(20) json(20) xsd(19)
| Conf files: github-actions(3)
| Folder (mis-builder): 275 files
| File types: py(63) png(34) po(33) rst(29) xml(25) yml(6) gitignore(4)
| html(4) md(3) pot(3)
| Conf files: github-actions(3) makefile(1)
| Folder (moduon-odoo-addons): 315 files
| File types: py(80) xml(33) rst(30) png(10) yaml(8) html(8) pot(7) po(7)
| txt(6) yml(5)
| Conf files: dockerfile(1)
| Folder (moduon-odoo-private-addons): 165 files
| File types: py(35) rst(19) xml(11) yaml(8) txt(6) png(6) yml(5) html(5)
| md(3) empty(3)
| Conf files: dockerfile(1)
| Folder (multi-company): 127 files
| File types: py(26) rst(15) xml(10) yml(6) js(4) po(4) png(2)
| editorconfig(1) flake8(1) gitignore(1)
| Conf files: github-actions(3)
| Folder (partner-contact): 1869 files
| File types: po(1001) py(222) rst(125) xml(49) png(43) pot(28) html(28)
| csv(7) yml(6) svg(4)
| Conf files: github-actions(3)
| Folder (project): 489 files
| File types: po(165) py(77) rst(40) xml(24) png(14) pot(10) html(10)
| yml(6) csv(2) editorconfig(1)
| Conf files: github-actions(3)
| Folder (purchase-workflow): 892 files
| File types: po(272) py(172) rst(86) xml(44) png(26) html(19) pot(18)
| yml(6) csv(3) svg(2)
| Conf files: github-actions(3)
| Folder (queue): 343 files
| File types: py(90) rst(34) po(31) xml(26) pot(8) png(8) yml(6) html(6)
| csv(4) js(4)
| Conf files: github-actions(3)
| Folder (reporting-engine): 923 files
| File types: po(430) py(128) rst(61) xml(30) png(22) pot(13) html(13)
| yml(6) csv(6) js(4)
| Conf files: github-actions(3)
| Folder (sale-workflow): 826 files
| File types: po(386) py(110) rst(63) xml(35) pot(13) png(13) html(13)
| yml(6) csv(4) editorconfig(1)
| Conf files: github-actions(3)
| Folder (sale-workflow-v15): 2601 files
| File types: po(772) py(476) rst(251) xml(132) png(76) pot(58) html(57)
| csv(17) yml(6) svg(2)
| Conf files: github-actions(3)
| Folder (server-brand): 109 files
| File types: py(18) po(11) rst(9) yml(6) pot(3) png(3) html(3) xml(3)
| editorconfig(1) flake8(1)
| Conf files: github-actions(3)
| Folder (server-tools): 861 files
| File types: po(254) py(157) rst(87) xml(27) png(22) pot(18) html(18)
| yml(6) csv(6) css(3)
| Conf files: github-actions(3)
| Folder (server-ux): 544 files
| File types: po(200) py(84) rst(39) xml(24) png(22) js(11) pot(8)
| html(8) yml(6) csv(3)
| Conf files: github-actions(3)
| Folder (social): 565 files
| File types: po(228) py(95) rst(44) png(15) xml(14) pot(10) html(9)
| yml(6) svg(2) csv(2)
| Conf files: github-actions(3)
| Folder (stock-logistics-workflow): 690 files
| File types: py(174) rst(80) po(74) xml(28) pot(21) png(21) html(20)
| yml(6) setuptools-odoo-make-default-ignore(2)
| txt(2)
| Conf files: github-actions(3)
| Folder (web): 513 files
| File types: rst(56) py(55) po(53) js(32) gif(24) png(22) xml(20)
| pot(14) scss(14) html(13)
| Conf files: github-actions(3)
| Folder (odoo): more than 21341 files
| File types: po(9082) py(2879) xml(2207) js(1109) png(458) csv(260)
| svg(244) pot(212) scss(201) jpg(93)
| Conf files:
| Folder (private): 1 files
| File types: editorconfig(1)
| Conf files:
| Folder (test16-odoo): more than 21695 files
| File types: po(8320) py(2934) xml(2063) jpg(1156) js(452) pot(256)
| scss(252) png(233) rst(209) svg(135)
| Conf files: dockerfile(2);
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
nodejswelcome1cf:30587006
3biah626:30602489
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
a9j8j154:30646983
vsccsb:30705552
azdwalk:30687957
pythonms35:30701012
pythonfmttextcf:30716743
pythonclientmv:30713943
First of all thank you for writing this really great extension.
After upgrading to the newest VSCode 1.52.1 running the Task "refresh submodules" from the status bar using your extension (version 0.8.0) fails with the error message:
"Tasks to execute must include an execution"
I suspect it is an issue with their task extension. The task itself has no "command" property but is a sequence of other tasks. Running it via the "Terminal -> Run Task..." Menu is successful.
Below you find the used tasks.json in a ZIP archive
Have a merry christmas,
Just discovered this extension tonight and it's fantastic. One feature that would be nice is a customizable tooltip that pops up when you hover over the status bar item. This could be configured with a "statusbartooltip" option. I believe the following code would be close to what is needed:
let tooltip = getValue2(task, config, "options", "statusbartooltip");
if (tooltip != undefined) {
statusBar.tooltip = tooltip;
}
Sorry I didn't create a pull request for this, it looks like I would need to install quite a few utilities to create/debug extensions and it didn't seem worthwhile for such a small change.
By default all tasks are shown, and one can hide them individually via "hide": true
.
But I have MANY tasks, and this isn't convenient. I prefer to hide all tasks by default via "tasks.statusbar.default.hide": true
, and then to show specific tasks via "hide": false
.
Unfortunately that doesn't work. No tasks are shown.
Is this possible?
Hello vscode-tasks team!
First, I like a lot your vscode extension, plus that I can use emojis to display tasks in the botton bar. :)
But, I noticed that every task.json that has task with a "path" configured, this task turns hidden.
Take a look in my tasks.json:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [{
"type": "npm",
"script": "deploy",
"path": "functions",
"problemMatcher": [],
"group": "build",
"options": {
"statusbar": {
"label": "deploy",
"tooltip": "deploy",
"color": "#FFF",
"hide": false
}
}
},
{
"type": "npm",
"script": "start-dev",
"group": "none",
"path": "functions"
},
{
"type": "npm",
"script": "serve-dev",
"path": "functions/",
"problemMatcher": [],
"group": "build"
},
{
"type": "npm",
"script": "serve",
"path": "/functions",
"problemMatcher": []
},
{
"type": "npm",
"script": "debug",
"path": "/functions/",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
}
]
}
None of the above tasks will be shown. Only if I remove the "path" option
With last vscode update (1.35.1) and version 0.2.2 of this extension installed, tasks are always visible on status bar regardless of the "hide" setting en tasks.json
Anyone else with the same problem?
I was running into issues with the GO extension constantly being loaded in non-go projects - after disabling your extension the issue was gone - so apparently you're triggering the onTaskType:
event for all extensions available - I just don't get why as the extension should only look at the tasks.json
as far as I know?
I had these two tasks in my tasks.json
file, along with several others. All of them used to show up in the status bar thanks to this extension. However, it got updated yesterday, and now all of a sudden, these two tasks just...don't show up anymore, and there's no log output to give any insight as to why. The rest do; the one thing these two have in common, separating them from all the rest, is that they're NPM tasks. Is there any reason they're suddenly absent? Does the extension just not support NPM tasks anymore?
{
"type": "npm",
"script": "tsc",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"base": "$tsc",
"fileLocation": [
"relative",
"${workspaceFolder}/client"
]
},
"options": {
"cwd": "client"
}
},
{
"type": "npm",
"script": "tslint",
"problemMatcher": {
"base": "$tsc",
"fileLocation": [
"relative",
"${workspaceFolder}/client"
]
},
"options": {
"cwd": "client"
}
},
如:
// 使用正则匹配
"filePattern" : "*\.lua"
"filePattern" : "\.lua$"
//简单后缀匹配
"filePattern" : ".lua"
//多项后缀匹配
"filePattern" : ".lua ; .txt"
如果能直接支持正则就更好了。
Hi,
I all my projects the extension stopped working, it worked fine before with all my tasks.json
The extension is v0.8.1 and using Visual Studio Code 1.53.2 on Linux.
I tried reverting to different versions but it didn't work.
What I found out that starting with a new user-data-dir fixes the problem, but I want to keep my settings... and when I create a new dir and sync my settings into it stops working.
Any idea what could help to fix that?
After updating to 0.15.2, some of my tasks are not appearing in the status bar. 0.15.3 doesn't fix the problem. If I downgrade to 0.15.1, the tasks all appear correctly.
I have created a Gist that reproduces the issue: https://gist.github.com/ArcanoxDragon/3b8b3f9b2fb2684160d37ce4ff1a22c8
The tasks.json
file from the Gist needs to go in a .vscode
folder next to package.json
, of course.
On 0.15.1, both tasks show up in the status bar, but in 0.15.2 and 0.15.3, only the "Yarn Install" task appears. It seems like this change is responsible; matchComposite
returns false
for the NPM task that doesn't show up.
hi,
after VS Code update 1.76 no task icons are visible.
Tasks v.0.11.1, Window 10, VS Code 1.76.0
Hello!
I saw that instead of .vscode/tasks.json you have defined the tasks in .code-workspace, the Tasks extensions does not display them in the status bar. Is this not implemented ?
Thank you in advance!
Best regards,
Sebastian
When configuring OS-specific options for tasks, extension ignores it's options completely.
Here I setup extension in global options:
{
"label": "VM: Rollback to initial snapshot",
"type": "shell",
"dependsOrder": "sequence",
"options": {
"statusbar": {
"hide": false,
"label": "won't be seen"
}
},
"windows": {
"options": {
"shell": {
"executable": "C:\\Windows\\System32\\cmd.exe",
"args": [
"/c"
]
}
},
"command": {
"value": "${env:ProgramFiles(x86)}\\VMware\\VMware Workstation\\vmrun",
"quoting": "strong"
},
"args": [
"-T", "ws",
"revertToSnapshot",
"_cut_"
"nogui",
]
},
"problemMatcher": [],
},
Here I try to put extension options under "windows" platform (normally you shouldn't even assume to do this):
"windows": {
"options": {
"statusbar": {
"hide": false,
"label": "won't be seen"
},
"shell": {
"executable": "C:\\Windows\\System32\\cmd.exe",
"args": [
"/c"
]
}
},
Hey there, recently this extension stopped working, I think it was after your last update. I don't see any tasks in my statusbar anymore. My tasks.json looks like this:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"presentation": {
"echo": false,
"reveal": "always",
"focus": false,
"panel": "new",
"showReuseMessage": true
},
"tasks": [
{
"label": "npm: build",
"type": "npm",
"options": {
"statusbar": {
"hide": false
}
},
"script": "build",
"dependsOn": ["npm: lint"],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "npm: dev",
"type": "npm",
"script": "dev",
"isBackground": true,
"problemMatcher": ["$eslint-stylish"],
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "npm: compile-tools",
"type": "npm",
"options": {
"statusbar": {
"hide": true
}
},
"script": "compile-tools",
"problemMatcher": ["$tsc"]
},
{
"label": "npm: lint",
"type": "npm",
"script": "lint",
"group": "test",
"problemMatcher": ["$eslint-stylish"]
},
{
"label": "npm: dist",
"type": "npm",
"script": "dist",
"dependsOn": ["npm: lint", "npm: i18n", "npm: dev"],
"problemMatcher": ["$eslint-stylish"]
},
{
"label": "npm: i18n",
"type": "npm",
"script": "i18n",
"group": "build",
"problemMatcher": ["$tsc"]
},
{
"label": "generate changelog",
"type": "shell",
"options": {
"statusbar": {
"hide": false
}
},
"windows": {
"command": "wsl.exe -e ./generate_changelog.sh"
},
"command": "./generate_changelog.sh"
}
]
}
Hi,
thank you for this nice little extension.
It would be nice to add support for filepatterns like
*.txt
Patterns like "xxx*.*" are working nicely...
Thanks!
Since my editor updated to the latest insiders (as I have a few extensions which preview is only available on Insiders) - I only see a single task in the taskbar.
My tasks.json:
{
"version": "2.0.0",
"tasks": [
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/RDPBootupConfigurator.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"-c",
"Release",
"-o",
"${workspaceFolder}/out/publish"
],
"problemMatcher": "$msCompile"
},
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/RDPBootupConfigurator.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
}
]
}
If I bootup my normal vscode which is 1.78.2 - it shows them without issues
This extension is not properly clearing existing tasks buttons during load.
When doing remote development, there are situations where VSCode loses connection and asks to "reload window". When this occurs, the task buttons are duplicated. If the window reloads again, then there are 3x the number of task buttons.
Version: v0.7.0
VSCode: 1.50.1
Hi, thank you for this wonderful extension. How to assign a keyboard shortcut for a specific task ? I have 4 tasks which I created with this extension. But one among them is the most used. So I've decided to assign a shortcut key for that. Thanks in advance.
Is there a way to have compound tasks displayed in the status bar?
That's what my task.json looks like:
{
"version": "2.0.0",
"tasks": [
{
"label": "build_edk2_solution",
"type": "shell",
"command": "devenv",
"args": [
"EDK-II.sln",
"/build"
],
"options": {
"cwd": "${workspaceFolder}\\EDK-II"
},
"presentation": {
"echo": false,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false
}
},
{
"label": "current_solution",
"type": "shell",
"command": "devenv",
"args": [
"${fileBasenameNoExtension}.sln",
"/build"
],
"options": {
"cwd": "${workspaceFolder}\\Applications\\${fileBasenameNoExtension}"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false
}
},
{
/**
* There should probably be a way to distinguish between
* build only current file, and build current file
* after rebuilding
* all of the libs.
*/
"label": "Build current solution",
"type": "shell",
"dependsOrder": "sequence",
"dependsOn": [
"build_edk2_solution",
"current_solution",
],
"group": "build",
"presentation": {
"echo": false,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false
}
},
]
}
right now the status bar only displays "build_edk2_solution" and "current_solution", however, I'd actually want to only display the compound task "Build current solution".
I know that hiding those would be possible via "hide": true, but I want to ensure that a certain Task is displayed.
Tasks are only displayed in the status bar if they have a "command" - option, my compound tasks do not need those.
With vscode (1.28) and version 0.2.4 of this extension installed, tasks are always visible on status bar regardless of the "hide" setting en tasks.json. I'm on Windows, the tasks.json file is subfolder .vscode and we're opening the project as a folder, not as a workspace.
Related to #5.
First of all thank you for this wonderful extension. I use it a lot!
The extension currently provides the option to hide a single task like this:
"options": {
"statusbar": "hide"
}
As - in my current project - I have a lot of tasks in my tasks.json
it's quite some work to disable them all.
It would be great to have a settings-option for the default visibility and be able to just enable single tasks conditionally in the task-options.
I'd suggest introducing a new task-option (to maintain backwards compatibility) showInStatusBar
(boolean) for tasks.json ...
"options": {
"showInStatusBar": true
}
... and a "global' option tasks.showInStatusbar
inside settings.json.
"tasks.showInStatusBar": {
"default": false
}
I might contribute such functionality in case you're interested.
Thanks again for your idea and work on this extension. Greatly appreciated!
At some point recently the extension settings for this extension seem to have disappeared and are no longer viewable or modifiable. I see the same behavior on code-server and on a native MacOS installation - I can see the settings that the extension intends to make available in the "Feature Contributions" section in the addon page, but clicking the cog on the extension and selecting "Extension Settings" brings up nothing (search is actually "@ext:actboy168.tasks". Same result if I go into Settings and manually search for "tasks". Other extensions chosen at random, such as this properly expose their settings.
Add dynamic styles to the button by listening to the start/stop event of the task: vscode.tasks.onDidStartTask
, $(sync~spin)
Add examples for schema statubar-label to view all icons (300+ icons) from codicon library. I can provide it later, if you think this is useful
I have noticed that some users use tasks configured with depends Order
and dependsOn
. Maybe they want the subtasks to be displayed dynamically. The subtasks will not be displayed, when the main task is running, the subtasks will temporarily appears and then disappears
Hello!
I have a tasks.json
similar to this:
{
"version": "2.0.0",
"tasks": [
{
"label": "a",
"detail": "run a",
"command": "a",
},
{
"label": "b",
"detail": "run b",
"command": "b",
},
{
"label": "ab",
"detail": "run a, then b",
"dependsOrder": "sequence",
"dependsOn": ["a", "b"],
"options": {
"statusbar": {
"hide": true
}
}
},
]
}
In version 0.12.0
the status bar looked like this:
Since version 0.12.1
the status bar looks like this (shown although hidden, with wrong label):
Thanks in advance, your extension is one of my personal favorites. 👍🏼
Hello,
Having a high number of tasks and a lower resolution or a relative high zoom will cause the task buttons to hide.
Is there a possibility to squish them together in some sort of menu?
For me, the default task is of "haxe" type, and it was not showing. I solved the problem by changing this line:
Line 270 in f0daa2a
if (!task.definition.id) {
. Not sure if it would work for others.I have noticed that tasks with same command string can cause extrange problems. In a tasks.json like the next one the two tasks are hidden whe only one has the hide attribute actived:
{
"version": "2.0.0",
"tasks": [
{
"label": "task",
"type": "shell",
"command": "b1"
},
{
"label": "hidden task",
"type": "shell",
"command": "b1",
"options": {
"statusbar": "hide"
}
}
]
}
This is a bit of a strange problem that I only suspect is caused by this plugin.
I have tasks of type npm with the path option to make npm execute a script from a package.json in a subfolder and sometimes i start vscode and the task button tries to execute the script in the root folder for some reason. Then I restart vscode and it suddenly works again, sometimes it takes another restart. I haven't found a pattern so I don't know if it depends on anything I'm doing or just random. But the built in task execution always run the correct script.
example task:
{
"label": "backend",
"type": "npm",
"script": "start",
"path": "server"
}
Any ideas what could be causing it?
Thanks for a great plugin.
/henrik
Is there a way to disable the status bar button for certain tasks? I have quite a few tasks on my project but really only want quick access to a select few.
Hello,
First thing first, great extension, real time saver 😄
I noticed that compounded tasks do not show up as buttons in status bar.
Running the compounded task directly works fine, so nothing wrong with syntax or anything.
This use case is covered by the extension ? or I should figure a workaround ?
Thank you advance for your time and answer!
BR,
Sebastian
Compound tasks doesn't seem to work.
when I setup these tasks:
{
"version": "2.0.0",
"tasks": [
{
"label": "start:dev",
"detail": "Start both server & client for development",
"dependsOn": [
"dev:server",
"dev:client-proxy"
],
"problemMatcher": []
},
{
"type": "npm",
"script": "start:proxy",
"path": "client/",
"problemMatcher": [],
"label": "dev:client-proxy",
"detail": "ng serve --port 10101 --proxy-config ./proxy.conf.json",
"presentation": {
"reveal": "always",
"panel": "shared",
"group": "devwatch"
}
},
{
"type": "npm",
"script": "start:server",
"problemMatcher": [],
"label": "dev:server",
"detail": "cd ./server && npm run start:dev",
"presentation": {
"reveal": "always",
"panel": "shared",
"group": "devwatch"
}
}
]
}
expected: should also see start:dev
as a task
open-vsx.org is an alternative extensions store that is fully open. Allows using extensions in VSCodium or Gitpod for example.
Would you mind publishing this extension there? See https://github.com/eclipse/openvsx/wiki/Publishing-Extensions#how-to-publish-an-extension
Have this error when loading the extension: Class constructor Yt cannot be invoked without 'new', which prevents the display of the tasks bar. Traced back the error to line 285 of extension.js : 285 --> return vscode.ThemeColor(color);
Changed it to 285 --> return new vscode.ThemeColor(color); and now everything works fine.
Computer: Apple M1 MacBook Pro. OS: macOS Ventura
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.