From 8784e00c25dacccf3391efb97028543b831fbbd5 Mon Sep 17 00:00:00 2001 From: Scott Meesseman Date: Sun, 7 Feb 2021 04:45:26 -0500 Subject: [PATCH] refactor: allow gradle tasks to use 'run with arguments' command. [closes #88] --- README.md | 2 +- src/tasks.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1bb1f44ed..efcc8b6c5 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Provides a view in either (or both) the SideBar and/or Explorer that displays al ## Features by Version -* v1.30 - Configurable default click action (closes [#97](https://github.com/spmeesseman/vscode-taskexplorer/issues/97)), Add 'Open Task' inline button +* v1.30 - Configurable default click action (closes [#97](https://github.com/spmeesseman/vscode-taskexplorer/issues/97)), Add 'Run with Arguments' command (closes [#88](https://github.com/spmeesseman/vscode-taskexplorer/issues/88)), Add 'Run with NoTerminal' command (closes [#39](https://github.com/spmeesseman/vscode-taskexplorer/issues/39)) (note that as of VSCode 1.53, there seems to be a bug that prevents running tasks without showing the terminal). * v1.29 - Support multi-level task groupings (closes [#129](https://github.com/spmeesseman/vscode-taskexplorer/issues/129)), Support user tasks (closes [#127](https://github.com/spmeesseman/vscode-taskexplorer/issues/127)) * v1.28 - Support Makefile aliases (thanks **MichaelCurrin**) * v1.27 - Use gulp and ant to find their respective tasks (configurable on/off) (closes [#105](https://github.com/spmeesseman/vscode-taskexplorer/issues/105)), Make grouping separator configurable (thanks **richarddavenport**) diff --git a/src/tasks.ts b/src/tasks.ts index 3b99de991..3f64e3f3e 100644 --- a/src/tasks.ts +++ b/src/tasks.ts @@ -50,7 +50,7 @@ export class TaskItem extends TreeItem this.execution = tasks.taskExecutions.find(e => e.task.name === task.name && e.task.source === task.source && e.task.scope === task.scope && e.task.definition.path === task.definition.path); - if (this.task.definition.scriptFile) { + if (this.task.definition.scriptFile || this.taskSource === "gradle") { this.contextValue = "scriptFile"; } else {