nickdodd79 / vscode-gulptasks

A gulp task visualization and execution extension for Visual Studio Code
MIT License
7 stars 6 forks source link

Only works in single-folder workspaces #17

Open ErynManela opened 6 years ago

ErynManela commented 6 years ago

If there are multiple folder assigned to a workspace, it throws an error - I think it is trying to assign the first gulpfile it finds to the first root it finds, which may not match.
Ideal behavior is for a single GulpService to be aware of all entries in the workspace.workspaceFolder[] (rather than the first entry, which is the same as the root) (https://code.visualstudio.com/docs/extensionAPI/vscode-api#_workspace) and present each in the explorer tree.

ErynManela commented 6 years ago

If you want to add me to the project you can assign it to me, I'd be interested in solving the problem.

nickdodd79 commented 6 years ago

Hey @aaronmanela

I have added you as a contributor. Thanks for the help.

Nick.

ErynManela commented 6 years ago

Thank you much. Will get to work on this issue soon.

kuntergunt commented 5 years ago

It shows a nice hierarchy of gulpfiles in subfolders (sub projects). But execution starts in the root folder instead of the subfolder. A cwd should do the trick.

nickdodd79 commented 5 years ago

Hey @kuntergunt

We already apply the cwd parameter.

I think the problem is when the extension loads it tries to resolve the path for the gulp process. However, in a workspace, this might needs to be different for each project. I am working on a solution that will resolve multiple instances of gulp and assign it to the task.

Nick.