You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create workspace with large directory and file structure. Or clone one. (CocoaPods/Specs is a good example)
Create a task in tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "echo",
"type": "shell",
"command": "echo Hello"
}
]
}
In my large workspaces I have disabled all *.autoDetect configuration options so that my default build task (cmd+shift+b) doesn't have to wait for vscode to look for all build tasks.
Before this change, my default build task started running immediately.
After this change, my default build task spends 20 seconds Fetching build tasks... before finally running my build script.
I believe this is a workflow breaking regression and have been forced to revert to the previous build of VSCode (1.20.x).
The text was updated successfully, but these errors were encountered:
There is one additional task auto detection we ship auto of the box. It is "typescript.tsc.autoDetect": "off". Can you try to turn that off as well and see whether it makes a difference.
@dbaeumer copy paste error on my part, I already have that one disabled also and still run into the same issue. I'll update the original message to include it
@jtokoph thanks. And actually after looking at the NPM code it is clear that the find causes the issue.
@egamma the problem is that you scan for all package.json files before checking if the feature is enabled or not. May be the scanning should happen per workspace folder based on the enablement setting.
Steps to Reproduce:
ps aux
. See the following process running during the hang:Fetching build tasks...
for a while.Does this issue occur when all extensions are disabled?: Yes
I think this has caused a regression in performance and usability in large repositories.
The change here https://github.com/Microsoft/vscode/blob/a6dde81592febe579a24ada7b0e6d63b15a37cfd/extensions/npm/src/main.ts#L103 is calling
vscode.workspace.findFiles
before checking if the main workspace settings havenpm.autoDetect
set to on/off.In my large workspaces I have disabled all *.autoDetect configuration options so that my default build task (cmd+shift+b) doesn't have to wait for vscode to look for all build tasks.
Before this change, my default build task started running immediately.
After this change, my default build task spends 20 seconds Fetching build tasks... before finally running my build script.
I believe this is a workflow breaking regression and have been forced to revert to the previous build of VSCode (1.20.x).
The text was updated successfully, but these errors were encountered: