Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nested groups #129

Closed
JohnDoe2991 opened this issue Dec 17, 2020 · 3 comments
Closed

nested groups #129

JohnDoe2991 opened this issue Dec 17, 2020 · 3 comments
Labels

Comments

@JohnDoe2991
Copy link

First, thank you for this great extension! It really helps managing all my tasks in my projects!

I'm working with a quite large C++ project, which can be built with different options and for different targets. Also there are a lot of small scripts to help with reappearing tasks. Here is an example how my tasks in tasks.json look like:

build option_a for target 1
build option_a for target 2
build option_b for target 1
build option_b for target 2
add parameter for option_a
add parameter for option_b
...

I tried to group them together like so:

option_a:build:target1
option_a:build:target2
option_a:scripts:add parameter
option_b:build:target1
option_b:build:target2
option_b:scripts:add parameter
....

What I got was this:

projectname
    vscode
        option_a
            build:target1
            build:target2
            scripts: add parameter
            ...
        option_b
            build:target1
            build:target2
            scripts: add parameter
            ...

I hoped it would look more like this:

projectname
    vscode
        option_a
            build
                target1
                target2
                ...
            scripts
                add parameter
                ...
        option_b
            build
                target1
                target2
                ...
            scripts
                add parameter
                ...

Did i something wrong or are nested groups not supported? Is there a chance to get support for this?

@JohnDoe2991
Copy link
Author

I managed to update the taskTree.ts to support nested groups.
I'm an embedded C/C++ programmer and just googled my way through to get this feature done. So I'm not confident enough to create a pull request for my changes. Feel free to take the changes from my fork if they are actually good enough.
Also I only tests VSCode workspace tasks, so I have no idea if other task providers still are working.

@spmeesseman
Copy link
Owner

lol. ive been trying to work on this for months, I need this to. One of these weeks Ill get it working, Im almost there. This next release has the main routine cleaned up, and prepared to make this change now, but trying to figure out some final issues with it still

@spmeesseman spmeesseman added enhancement New feature or request working on it labels Feb 5, 2021
spmeesseman added a commit that referenced this issue Feb 6, 2021
# [1.29.0](v1.28.0...v1.29.0) (2021-02-06)

### Bug Fixes

* if 'yarn is package manager set in VSCode, package.json tasks still show npm icon. [fix [#125](#125)] ([52acdc1](52acdc1))
* problem matcher used in makefile tasks is undefined. [fixes [#123](#123)] ([cae79ea](cae79ea))
* the context menu tasks for npm folder nodes does not run the package manager set in VSCode settings, will always use npm. [fix [#62](#62)] ([79695f0](79695f0))
* vscode tasks - compound tasks with no 'command' property do not launch. [fixes [#130](#130)] ([f5a92fc](f5a92fc))

### Documentation

* **readme:** update by-version features list ([97233be](97233be))

### Features

* ADD option to disable auto-refresh. [closes [#124](#124)] ([82aa4bd](82aa4bd))
* add support for 'User' tasks. [closes [#127](#127)] ([43f7399](43f7399))
* add support for multi-level groupings (configurable level). [fix [#129](#129)] ([35da55e](35da55e))
@spmeesseman
Copy link
Owner

🎉 This issue has been resolved in version 1.29.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants