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

Shell command appearing in subdirectory #17

Open
clecap opened this issue Nov 20, 2022 · 2 comments
Open

Shell command appearing in subdirectory #17

clecap opened this issue Nov 20, 2022 · 2 comments

Comments

@clecap
Copy link

clecap commented Nov 20, 2022

How would I achieve the following:

A shell command which task manager shows in the tree under a specific folder.

With npm the extension correctly sorts the tasks using the path property but with shell type tasks it does not.

@cnshenj
Copy link
Owner

cnshenj commented Nov 23, 2022

How would I achieve the following:

A shell command which task manager shows in the tree under a specific folder.

With npm the extension correctly sorts the tasks using the path property but with shell type tasks it does not.

Can you share an example?

@clecap
Copy link
Author

clecap commented Nov 23, 2022

When I have a package.json folder inside of /main/sub/subsub then in task manager this shows up correctly under /main/sub/subsub in the tree. However if I have a tasks.json file in the same directory where I use shell commands this is not recognized. It also does not help to place this file inside of a .vscodedirectory in /main/sub/subsub/.

Thus I cannot manage shell scripts inside of a tree hierarchy in the directories where they belong to. Ok, it does work if I use npm, but it does not work with normal shell script commands.

My current solution is to have all of the shell commands inside of a .vscodedirectory with a single tasks.json file inside of /main. The disadvantage of this workaround is that I do not keep the tasks in the directories where they would apply to.

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

No branches or pull requests

2 participants