Skip to content

Commit

Permalink
configured regex to detect folders inside the asset folders.
Browse files Browse the repository at this point in the history
  • Loading branch information
anasilva105 committed Apr 24, 2024
1 parent cb51038 commit 1e60dc3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@
"group": "devtools"
},
{
"when": "resourcePath =~ /deploy/ || (resourcePath =~ /retrieve/ && (resourceExtname == '.json' || resourceExtname == '.html' || resourceExtname == '.sql' || resourceExtname == '.ssjs' || resourceLangId == 'markdown' || resourceLangId == 'AMPscript'))",
"when": "resourcePath =~ /deploy/",
"command": "sfmc-devtools-vscext.devtoolsCMDeploy",
"group": "devtools"
},
{
"when": "resourcePath =~ /retrieve/ && (resourceExtname == '.json' || resourceExtname == '.html' || resourceExtname == '.sql' || resourceExtname == '.ssjs' || resourceLangId == 'markdown' || resourceLangId == 'AMPscript' || resourceDirname =~ /asset\\\\[a-zA-Z]*/)",
"command": "sfmc-devtools-vscext.devtoolsCMDeploy",
"group": "devtools"
},
Expand Down Expand Up @@ -97,7 +102,12 @@
"group": "devtools"
},
{
"when": "resourcePath =~ /deploy/ || (resourcePath =~ /retrieve/ && (resourceExtname == '.json' || resourceExtname == '.html' || resourceExtname == '.sql' || resourceExtname == '.ssjs' || resourceLangId == 'markdown' || resourceLangId == 'AMPscript'))",
"when": "resourcePath =~ /deploy/",
"command": "sfmc-devtools-vscext.devtoolsCMDeploy",
"group": "devtools"
},
{
"when": "resourcePath =~ /retrieve/ && (resourceExtname == '.json' || resourceExtname == '.html' || resourceExtname == '.sql' || resourceExtname == '.ssjs' || resourceLangId == 'markdown' || resourceLangId == 'AMPscript')",
"command": "sfmc-devtools-vscext.devtoolsCMDeploy",
"group": "devtools"
},
Expand Down

0 comments on commit 1e60dc3

Please sign in to comment.