From 97632aa222b0f83959225945ee1a198fb20fe620 Mon Sep 17 00:00:00 2001 From: Ana Silva Date: Wed, 24 Jan 2024 17:05:25 +0100 Subject: [PATCH] added ssjs extension to menus in package.json --- package.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ac0b46c..d7439b3 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "group": "devtools" }, { - "when": "resourcePath =~ /deploy/ || (resourcePath =~ /retrieve/ && (resourceExtname == '.json' || resourceExtname == '.html' || resourceExtname == '.sql' || resourceLangId == 'markdown'))", + "when": "resourcePath =~ /deploy/ || (resourcePath =~ /retrieve/ && (resourceExtname == '.json' || resourceExtname == '.html' || resourceExtname == '.sql' || resourceExtname == '.ssjs' || resourceLangId == 'markdown'))", "command": "sfmc-devtools-vscext.devtoolsCMDeploy", "group": "devtools" }, @@ -70,9 +70,14 @@ "group": "devtools" }, { - "when": "resourcePath =~ /deploy/ || (resourcePath =~ /retrieve/ && (resourceLangId == json || resourceLangId == html || resourceLangId == sql || resourceLangId == markdown || resourceLangId == ssjs))", + "when": "resourcePath =~ /deploy/ || (resourcePath =~ /retrieve/ && (resourceExtname == '.json' || resourceExtname == '.html' || resourceExtname == '.sql' || resourceExtname == '.ssjs' || resourceLangId == 'markdown'))", "command": "sfmc-devtools-vscext.devtoolsCMDeploy", "group": "devtools" + }, + { + "when": "(resourcePath =~ /retrieve/ || resourcePath =~ /deploy/) && resourceFilename != 'retrieve' && resourceFilename != 'deploy'", + "command": "sfmc-devtools-vscext.devtoolsCMCopyToBU", + "group": "devtools" } ] }