spmeesseman / vscode-taskexplorer

Run and Manage Tasks for Visual Studio Code
Other
141 stars 30 forks source link

BUG: Can't find tasks from package.json #121

Closed tyler36 closed 3 years ago

tyler36 commented 4 years ago

I have 1 project that TaskExplorer refused to show tasks for in the sidebar. I spent some time debugging the issue (toggling settings and extensions). I can reproduce it as followed:

`package.json

{
    "scripts": {
        "test": "jest"
    }
}
  1. I:\example\package.json, I open VSCode at example
  2. [ ] I:\static\example\package.json, I open VSCode at example, TaskExplorer is empty
  3. I:\static\package.json, I open VSCode at `static
  4. I:\temp\example\package.json, I open VSCode at example
  5. [ ] I:\temp\static\example\package.json, I open VSCode at example, TaskExplorer is empty
  6. I:\temp\staticc\example\package.json, I open VSCode at example;
  7. [ ] I:\temp\static\hope\example\package.json, I open VSCode at example, TaskExplorer is empty

So for me, if I open a project that is more than 1 level deep and one of it's parent folders is exactly called `static, TaskExplorer will not see any NPM tasks. Hopefully, this is some sort of bug and not a ghost in my machine.

OS: Win10 VSCode: 1.50 TaskExplorer: 1.27

spmeesseman commented 3 years ago

is this folder by chance being ignored in the list of ignored paths in your settings.json?

spmeesseman commented 3 years ago

oh, wasnt thinking, npm tasks, these are provided by VSCode itself, Task Explorer simply displays them. So check your ignore paths for vscode, or, vscode itself is ignoring this folder