How to disable for non-code workspaces
crystalfp opened this issue · comments
Description
Installed mocha-sidebar globally. Unfortunately, I have workspaces that do not contain code, only markdown files (paper writing projects). Mocha-sidebar complains that:
side-bar: cant find nyc locally and there is no setting for other path,
Error: get-installed-path: module not found "nyc" in path d:\Projects\KBsearch\node_modules\nyc
In my recent coding projects nyc is, along with typescript and eslint plugins, installed as devDependencies.
Steps to Reproduce
- Create a workspace without node_modules.
- Open any text or markdown file in the workspace.
- Look at the above error message
Expected Results
If mocha or nyc not available don't complain but make the extension not active
Actual Results
See above
Settings file
{
"folders": [
{
"path": "."
}
],
"settings": {
"eslint.options": {
"configFile": "D:/Projects/xxx/eslint.yaml",
"envs": ["jquery", "node", "amd", "browser", "mocha"],
"ignorePattern": "**/*.min.css"
},
"mocha.files.glob": "tests/**/*.test.ts",
"mocha.requires": [
"ts-node/register",
"source-map-support/register"
],
}
}
Versions
Version: 1.41.1 (user setup)
Commit: 26076a4de974ead31f97692a0d32f90d735645c0
Date: 2019-12-18T14:58:56.166Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18363
mocha-sidebar 0.22.2
OS version
- Linux
- Mac
- Windows