Skip to content

Commit

Permalink
Merge pull request #185 from Accenture/feature/112-have-mcdev-command…
Browse files Browse the repository at this point in the history
…s-in-editor-context-menu-of-open-file

mcdev commands available on editor context
  • Loading branch information
anasilva105 authored Jun 6, 2024
2 parents e56c33e + d745d66 commit 0bdc260
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,21 @@
"group": "devtools"
}
],
"commandPalette": [
"editor/context": [
{
"when": "sfmc-devtools-vscode.isDevToolsProject && resourcePath =~ /retrieve/",
"command": "sfmc-devtools-vscext.devtoolsCMRetrieve",
"when": "false"
"group": "devtools"
},
{
"when": "sfmc-devtools-vscode.isDevToolsProject && (resourcePath =~ /deploy/ || (resourcePath =~ /retrieve/ && (resourceExtname == '.json' || resourceExtname == '.html' || resourceExtname == '.sql' || resourceExtname == '.ssjs' || resourceLangId == 'markdown' || resourceLangId == 'AMPscript' || resourceLangId == 'ampscript' || resourceDirname =~ /asset\\\\[a-zA-Z]*/)))",
"command": "sfmc-devtools-vscext.devtoolsCMDeploy",
"when": "false"
"group": "devtools"
},
{
"when": "sfmc-devtools-vscode.isDevToolsProject && resourcePath =~ /retrieve/ && resourceFilename != 'retrieve' && resourceFilename != 'deploy'",
"command": "sfmc-devtools-vscext.devtoolsCMCopyToBU",
"when": "false"
"group": "devtools"
}
],
"editor/title/context": [
Expand All @@ -106,6 +109,20 @@
"command": "sfmc-devtools-vscext.devtoolsCMCopyToBU",
"group": "devtools"
}
],
"commandPalette": [
{
"command": "sfmc-devtools-vscext.devtoolsCMRetrieve",
"when": "false"
},
{
"command": "sfmc-devtools-vscext.devtoolsCMDeploy",
"when": "false"
},
{
"command": "sfmc-devtools-vscext.devtoolsCMCopyToBU",
"when": "false"
}
]
},
"configuration": {
Expand Down

0 comments on commit 0bdc260

Please sign in to comment.