From 1e60dc3bb3f53bededfb63599e2d8537fda5a300 Mon Sep 17 00:00:00 2001 From: Ana Silva Date: Wed, 24 Apr 2024 15:15:57 +0200 Subject: [PATCH] configured regex to detect folders inside the asset folders. --- package.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d662c80..aba6427 100644 --- a/package.json +++ b/package.json @@ -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" }, @@ -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" },