Last active
May 11, 2021 00:21
-
-
Save lukethacoder/b53beba56434b6e9972e2073a8cd3e16 to your computer and use it in GitHub Desktop.
Base VS Code Workspace and Tasks for SFDX projects (helps with hiding unnecessary metadata folders and adds handy vs code tasks for CRUD)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"search.exclude": { | |
"**/.localdevserver": true, | |
"**/.sfdx": true, | |
"**/node_modules": true, | |
"force-app\\main\\default\\aura": false, | |
"force-app\\main\\default\\classes": false, | |
"force-app\\main\\default\\lwc": false, | |
"force-app\\main\\default\\pages": false, | |
"force-app\\main\\default\\staticresources": true | |
}, | |
"files.exclude": { | |
".localdevserver": true, | |
".idea": true, | |
"IlluminatedCloud": true, | |
"node_modules": true, | |
"force-app\\main\\default\\LeadConvertSettings": true, | |
"force-app\\main\\default\\analyticSnapshots": true, | |
"force-app\\main\\default\\apexEmailNotifications": true, | |
"force-app\\main\\default\\appMenus": true, | |
"force-app\\main\\default\\applications": true, | |
"force-app\\main\\default\\approvalProcesses": true, | |
"force-app\\main\\default\\assignmentRules": true, | |
"force-app\\main\\default\\aura": false, | |
"force-app\\main\\default\\authproviders": true, | |
"force-app\\main\\default\\autoResponseRules": true, | |
"force-app\\main\\default\\brandingSets": true, | |
"force-app\\main\\default\\callCenters": true, | |
"force-app\\main\\default\\campaignInfluenceModels": true, | |
"force-app\\main\\default\\certs": true, | |
"force-app\\main\\default\\channelLayouts": true, | |
"force-app\\main\\default\\classes": false, | |
"force-app\\main\\default\\classes\\*.xml": true, | |
"force-app\\main\\default\\cleanDataServices": true, | |
"force-app\\main\\default\\communities": true, | |
"force-app\\main\\default\\components": false, | |
"force-app\\main\\default\\components\\*.xml": true, | |
"force-app\\main\\default\\corsWhitelistOrigins": true, | |
"force-app\\main\\default\\customMetadata": true, | |
"force-app\\main\\default\\customPermissions": true, | |
"force-app\\main\\default\\connectedApps": true, | |
"force-app\\main\\default\\contentassets": true, | |
"force-app\\main\\default\\cspTrustedSites": true, | |
"force-app\\main\\default\\datacategorygroups": true, | |
"force-app\\main\\default\\duplicateRules": true, | |
"force-app\\main\\default\\email": false, | |
"force-app\\main\\default\\email\\**\\*.xml": true, | |
"force-app\\main\\default\\emailservices": true, | |
"force-app\\main\\default\\EmbeddedServiceBranding": true, | |
"force-app\\main\\default\\EmbeddedServiceConfig": true, | |
"force-app\\main\\default\\EmbeddedServiceLiveAgent": true, | |
"force-app\\main\\default\\entitlementProcesses": true, | |
"force-app\\main\\default\\entitlementTemplates": true, | |
"force-app\\main\\default\\escalationRules": true, | |
"force-app\\main\\default\\experiences": true, | |
"force-app\\main\\default\\flexipages": true, | |
"force-app\\main\\default\\flowDefinitions": true, | |
"force-app\\main\\default\\flows": true, | |
"force-app\\main\\default\\globalValueSets": true, | |
"force-app\\main\\default\\groups": true, | |
"force-app\\main\\default\\homePageLayouts": true, | |
"force-app\\main\\default\\iframeWhiteListUrlSettings": true, | |
"force-app\\main\\default\\labels": true, | |
"force-app\\main\\default\\layouts": true, | |
"force-app\\main\\default\\letterhead": true, | |
"force-app\\main\\default\\lightningExperienceThemes": true, | |
"force-app\\main\\default\\liveChatAgentConfigs": true, | |
"force-app\\main\\default\\liveChatButtons": true, | |
"force-app\\main\\default\\liveChatDeployments": true, | |
"force-app\\main\\default\\liveChatSensitiveDataRule": true, | |
"force-app\\main\\default\\lwc": false, | |
"force-app\\main\\default\\managedTopics": true, | |
"force-app\\main\\default\\matchingRules": true, | |
"force-app\\main\\default\\messageChannels": true, | |
"force-app\\main\\default\\milestoneTypes": true, | |
"force-app\\main\\default\\moderation": true, | |
"force-app\\main\\default\\namedCredentials": true, | |
"force-app\\main\\default\\navigationMenus": true, | |
"force-app\\main\\default\\networkBranding": true, | |
"force-app\\main\\default\\networks": true, | |
"force-app\\main\\default\\notificationTypeConfig": true, | |
"force-app\\main\\default\\notificationtypes": true, | |
"force-app\\main\\default\\objectTranslations": true, | |
"force-app\\main\\default\\objects": true, | |
"force-app\\main\\default\\pages": false, | |
"force-app\\main\\default\\pathAssistants": true, | |
"force-app\\main\\default\\permissionsets": true, | |
"force-app\\main\\default\\presenceDeclineReasons": true, | |
"force-app\\main\\default\\presenceUserConfigs": true, | |
"force-app\\main\\default\\profilePasswordPolicies": true, | |
"force-app\\main\\default\\profileSessionSettings": true, | |
"force-app\\main\\default\\profiles": true, | |
"force-app\\main\\default\\queueRoutingConfigs": true, | |
"force-app\\main\\default\\queues": true, | |
"force-app\\main\\default\\quickActions": true, | |
"force-app\\main\\default\\remoteSiteSettings": true, | |
"force-app\\main\\default\\reportTypes": true, | |
"force-app\\main\\default\\restrictionRules": true, | |
"force-app\\main\\default\\roles": true, | |
"force-app\\main\\default\\samlssoconfigs": true, | |
"force-app\\main\\default\\serviceChannels": true, | |
"force-app\\main\\default\\servicePresenceStatuses": true, | |
"force-app\\main\\default\\settings": true, | |
"force-app\\main\\default\\sharingRules": true, | |
"force-app\\main\\default\\sharingSets": true, | |
"force-app\\main\\default\\siteDotComSites": true, | |
"force-app\\main\\default\\sites": true, | |
"force-app\\main\\default\\skills": true, | |
"force-app\\main\\default\\standardValueSets": true, | |
"force-app\\main\\default\\staticresources": false, | |
"force-app\\main\\default\\tabs": true, | |
"force-app\\main\\default\\topicsForObjects": true, | |
"force-app\\main\\default\\triggers": false, | |
"force-app\\main\\default\\userCriteria": true, | |
"force-app\\main\\default\\workflows": true | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"folders": [ | |
{ | |
"path": "C:\\PATH_TO_PROJECT" | |
} | |
], | |
"extensions": { | |
"recommendations": [ | |
"salesforce.salesforcedx-vscode" | |
] | |
}, | |
"settings": { | |
"window.title": "${rootName}", | |
"editor.cursorSmoothCaretAnimation": true, | |
"workbench.colorCustomizations": { | |
"titleBar.activeBackground": "#000000", | |
"titleBar.activeForeground": "#ffffff", | |
"titleBar.inactiveBackground": "#000000", | |
"titleBar.inactiveForeground": "#ffffff", | |
"sash.hoverBorder": "#ffffff" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "SFDX: Deploy Current File", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"force:source:deploy", | |
"--sourcepath", | |
"${relativeFile}", | |
"--wait", | |
"10", | |
"-u", | |
"SF_SANDBOX_ALIAS" | |
], | |
"group": "build", | |
"presentation": { | |
"reveal": "always", | |
"panel": "shared" | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "SFDX: Retrieve Current File", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"force:source:retrieve", | |
"--sourcepath", | |
"${relativeFile}", | |
"--wait", | |
"10", | |
"-u", | |
"SF_SANDBOX_ALIAS" | |
], | |
"group": "build", | |
"presentation": { | |
"reveal": "always", | |
"panel": "shared" | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "SFDX: Delete Current File", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"force:source:delete", | |
"--sourcepath", | |
"${relativeFile}", | |
"--wait", | |
"10", | |
"-u", | |
"SF_SANDBOX_ALIAS" | |
], | |
"group": "build", | |
"presentation": { | |
"reveal": "always", | |
"panel": "shared" | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "SFDX: Deploy Folder", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"force:source:deploy", | |
"--sourcepath", | |
"${input:sourcePath}", | |
"--wait", | |
"10", | |
"-u", | |
"SF_SANDBOX_ALIAS" | |
], | |
"group": "build", | |
"presentation": { | |
"reveal": "always", | |
"panel": "shared" | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "SFDX: Retrieve Folder", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"force:source:retrieve", | |
"--sourcepath", | |
"${input:sourcePath}", | |
"--wait", | |
"10", | |
"-u", | |
"SF_SANDBOX_ALIAS" | |
], | |
"group": "build", | |
"presentation": { | |
"reveal": "always", | |
"panel": "shared" | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "SFDX: Delete Folder", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"force:source:delete", | |
"--sourcepath", | |
"${input:sourcePath}", | |
"--wait", | |
"10", | |
"-u", | |
"SF_SANDBOX_ALIAS" | |
], | |
"group": "build", | |
"presentation": { | |
"reveal": "always", | |
"panel": "shared" | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "SFDX: Run Current Apex", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"force:apex:execute", | |
"-f", | |
"${relativeFile}", | |
"-u", | |
"SF_SANDBOX_ALIAS" | |
], | |
"group": "build", | |
"presentation": { | |
"reveal": "always", | |
"panel": "shared" | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "SFDX: echo", | |
"type": "shell", | |
"group": "build", | |
"command": "echo", | |
"args": [ | |
"SF_SANDBOX_ALIAS" | |
], | |
"presentation": { | |
"reveal": "always", | |
"panel": "shared" | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "SFDX: Start Local Dev Server", | |
"type": "shell", | |
"group": "build", | |
"command": "sfdx force:lightning:lwc:start", | |
"args": [], | |
"presentation": { | |
"reveal": "always", | |
"panel": "shared" | |
}, | |
"problemMatcher": [] | |
} | |
], | |
"inputs": [ | |
{ | |
"id": "sourcePath", | |
"type": "promptString", | |
"description": "Folder path to source metadata", | |
"default": "force-app" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment