-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
npm.scriptExplorerExclude from .vscode/settings.json do not work #164557
Comments
can you pls provide me w your tasks.json file? |
@meganrogge this issue is not related to tasks, this is related to npm scripts I do not have View with script exclude config: Used config in {
"npm.scriptExplorerExclude": [
"format",
"build",
"prepare",
"start",
"start:drfqdev",
"start:production",
"mongod"
]
}
|
Added tasks and nothing changed. {
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start:development",
"group": "none",
"label": "npm: start:development"
},
{
"type": "npm",
"script": "start:watch",
"group": "none",
"label": "npm: start:watch"
}
]
} |
I have found a source of problem. When i've add an "start" to ignore, all scripts where "start" word is founded are ignored ("start:development", "start:production", etc.) Config: {
"npm.scriptExplorerExclude": ["format", "build", "prepare", "start", "mongod"]
} |
@meganrogge I can't reproduce it. If there's anything I'm missing, please let me know. @Sovgut Currently, after rereading the thread more carefully, I can't see any unwanted behavior. Note that the If you want to exclude the (exact) {
"npm.scriptExplorerExclude": ["format", "build", "prepare", "start:", "mongod"]
} |
@babakks Thanks. I have made changes in configuration, and its works as should. {
"npm.scriptExplorerExclude": [
"format",
"build",
"prepare",
"start$",
"mongod",
":drfqdev",
":production"
]
} |
Type: Bug
When added any of script name, this config excluded all scripts instead of string items in config.
for example we have "start", "dev" and "build" in scripts, after adding "start" and "build" in this config, explorer view exclude all scripts and showing "No scripts found."
VS Code version: Code 1.72.2 (d045a5e, 2022-10-12T22:15:18.074Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
Extensions (15)
(4 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: