From b8c3260e7cf7693700800daf948fdc6a175e6523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Berkefeld?= Date: Thu, 23 Feb 2023 15:06:24 +0100 Subject: [PATCH 1/2] #768: enhance role documentation readability --- lib/metadataTypes/Role.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/metadataTypes/Role.js b/lib/metadataTypes/Role.js index 2990ee403..32e14004b 100644 --- a/lib/metadataTypes/Role.js +++ b/lib/metadataTypes/Role.js @@ -238,8 +238,14 @@ class Role extends MetadataType { // Reached end: write permission into this.allPermissions if (element.Operation) { const permSplit = _permission.split(' > '); - const basePermission = permSplit.shift(); - const permissionName = permSplit.join(' > '); + const permOperation = permSplit.pop(); + let basePermission = permSplit.shift(); + if (basePermission === 'Interactive Marketing Hub') { + basePermission = 'Salesforce Marketing Cloud'; + } + const permissionName = `${permSplit.join( + ' > ' + )} > ${permOperation}`; if (!this.allPermissions[basePermission]) { this.allPermissions[basePermission] = {}; } From 12f8779997561740d653f4435b2b6d6723424a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Berkefeld?= Date: Thu, 23 Feb 2023 15:12:14 +0100 Subject: [PATCH 2/2] #769: remove recommendations todo-tree ampscript markdown-all-in-one vscode-markdownlint --- .vscode/extensions.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index fa1939335..1228879f3 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -5,7 +5,6 @@ // List of extensions which should be recommended for users of this workspace. "recommendations": [ // collaboration - "gruntfuggly.todo-tree", "aaron-bond.better-comments", "github.vscode-pull-request-github", @@ -15,11 +14,8 @@ // Formatting & colors "editorconfig.editorconfig", "esbenp.prettier-vscode", - "sergey-agadzhanov.ampscript", // Markdown / Readme.md - "yzhang.markdown-all-in-one", - "davidanson.vscode-markdownlint", "joernberkefeld.markdown-preview-bitbucket-innersource" ] }