alexdima / vscode-lcov

MIT License
39 stars 13 forks source link

Watch expression not working #6

Closed gghez closed 8 years ago

gghez commented 8 years ago

Some watch expression does not work, here is my config working:

{
   "lcov.watch": [ {
       "pattern": "**/*.js",
       "command": "istanbul cover node_modules/mocha/bin/_mocha -- test/cli"
    }]
} 

Here is the config not working:

{
    "lcov.watch": [
        {
            "pattern": "./cli/**/*.js",
            "command": "istanbul cover node_modules/mocha/bin/_mocha -- test/cli"
        },
        {
            "pattern": "./test/cli/**/*.js",
            "command": "istanbul cover node_modules/mocha/bin/_mocha -- test/cli"
        }
    ]
}

I also tried "cli/*/.js" but same, nothing is watched.

gghez commented 8 years ago

I fixed it by adding extra * at pattern start: `/cli//.jsbut its crappy... unfortunately, I see in your code you simply rely tocreateFileSystemWatcher` VSCode API so I close this issue.