vs-deploy icon indicating copy to clipboard operation
vs-deploy copied to clipboard

Issue with ignore on large directories

Open allendotson opened this issue 6 years ago • 2 comments

When putting "node_modules/**" in ignore, deploying any other directory causes VSCode to hang. Is there a better way to do this? Or is it a bug?

allendotson avatar Oct 20 '17 02:10 allendotson

@telekovar

Sorry for the late answer.

You can try to set global setting fastCheckForIgnores to (true), so you are albe to use the faster minimatch check instead of node-glob,

mkloubert avatar Oct 23 '17 17:10 mkloubert

Thank you for your assistance. Setting "fastCheckForIgnores": true, causes the ignores to not work at all. This is similar to the settings I am using.

{
    "deploy": {
        "showPopupOnSuccess": false,
        "fastCheckForIgnores": true,
        "ignore": [
            ".git/**",
            ".vscode/**",
            "node_modules/**",
            "includes/source/**"
        ],
        "packages": [
            {
                "name": "Development Package",
                "deployOnSave": true,
                "fastCheckOnSave": true,
                "targets": ["Test Development"]
            }
        ],
        "targets": [
            {
                "type": "test",
                "name": "Test Development",
                "description": "Use to test what files would be deployed"
            }
        ]
    }
}

allendotson avatar Oct 26 '17 19:10 allendotson