Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
35 changes: 9 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

Dev Pack for Salesforce is a collection of useful VS Code extensions for Salesforce development. The pack includes extensions for Apex, Lightning Web Components (LWC), SOQL queries, and general development features.

## Features

- **Auto-Configuration** - Sets up Prettier formatting and Better Comments for Salesforce development
- **Apex Log Management** - Bulk delete Apex logs from your org
- **Quick Metadata Refresh** - Pull metadata from org with quick pick options
- **Environment Health Check** - Via bundled [SF Preflight](https://marketplace.visualstudio.com/items?itemName=avidev9.sf-preflight) extension

## Included Extensions

- [Salesforce Extension Pack](https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode-expanded)
Expand All @@ -29,6 +36,8 @@ Dev Pack for Salesforce is a collection of useful VS Code extensions for Salesfo
- [Code Spell Checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) - A basic spell checker that works well with code.
- [Lightning Flow Scanner](https://marketplace.visualstudio.com/items?itemName=ForceConfigControl.lightningflowscanner) - Scans and validates Salesforce Lightning Flows.
- [Log File Highlighter](https://marketplace.visualstudio.com/items?itemName=emilast.LogFileHighlighter) - Highlights log files to make them easier to read.
- [SF Preflight](https://marketplace.visualstudio.com/items?itemName=avidev9.sf-preflight) - Environment health checks and setup verification for Salesforce development.
- [SF Metadata Tracker](https://marketplace.visualstudio.com/items?itemName=avidev9.sf-metadata-tracker) - Track and monitor Salesforce metadata changes in your org.

## Installation

Expand All @@ -49,32 +58,6 @@ On the first installation, Dev Pack for Salesforce automatically sets the follow

This setup is only done the first time the extension is installed. Feel free to change after the initial setup.

## Automatic Package Detection and Installation

The Dev Pack for Salesforce simplifies and automates the setup of your developer environment. Upon installation, the pack automatically detects and installs required npm packages, as long as Node.js is installed in your system. The required npm packages include:


- `@salesforce/cli`
- `prettier`
- `@prettier/plugin-xml`
- `prettier-plugin-apex`

### Manual Trigger

You can manually trigger the package installation process by running the following command:

```json
{
"command": "dev-pack-salesforce.forceCheckPackages",
"title": "Dev Pack for Salesforce: Install required node modules"
}
```

To run this command:

- Open the Command Palette (View → Command Palette or Cmd+Shift+P).
- Type Dev Pack for Salesforce: Install required node modules and select it.

## Update Prettier Settings

This command updates the Prettier settings for Apex and JavaScript files in your workspace which enables formatting using prettier and features like format on save.
Expand Down
24 changes: 24 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import js from '@eslint/js';

export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
globals: {
console: 'readonly',
process: 'readonly',
setTimeout: 'readonly',
clearTimeout: 'readonly',
},
},
rules: {
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'no-console': 'off',
},
},
{
ignores: ['node_modules/**', 'release/**'],
},
];
60 changes: 7 additions & 53 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
"name": "dev-pack-salesforce",
"displayName": "Dev Pack for Salesforce",
"description": "A collection of useful VS Code extensions for Salesforce development",
"version": "1.1.0",
"version": "2.1.0",
"publisher": "avidev9",
"type": "module",
"scripts": {
"lint": "eslint src/**/*.js",
"clean": "rm -rf release/*.vsix",
"prebuild": "yarn clean",
"build": "npx @vscode/vsce package --out release/",
"package": "yarn build",
"release": "yarn build && echo 'Package ready in release/ folder'"
"release": "yarn build && echo 'Package ready in release/ folder'"
},
"engines": {
"vscode": "^1.61.0"
Expand Down Expand Up @@ -41,14 +42,17 @@
"streetsidesoftware.code-spell-checker",
"ForceConfigControl.lightning-flow-scanner-vsx",
"emilast.LogFileHighlighter",
"usernamehw.errorlens"
"usernamehw.errorlens",
"avidev9.sf-preflight",
"avidev9.sf-metadata-tracker"
],
"repository": {
"type": "git",
"url": "https://github.com/Avinava/vscode-dev-pack-salesforce.git"
},
"icon": "assets/icon.jpeg",
"devDependencies": {
"@eslint/js": "^9.39.1",
"@vscode/vsce": "^3.2.1",
"eslint": "^9.13.0",
"tslint": "^6.1.3",
Expand All @@ -65,16 +69,6 @@
"default": false,
"description": "Automatically update prettier settings for new sfdx projects"
},
"devPackSalesforce.showStatusBar": {
"type": "boolean",
"default": true,
"description": "Show Salesforce environment status in the status bar"
},
"devPackSalesforce.runHealthCheckOnStartup": {
"type": "boolean",
"default": true,
"description": "Run environment health check when VS Code starts"
},
"devPackSalesforce.autoDeleteApexLogs": {
"type": "boolean",
"default": false,
Expand All @@ -88,12 +82,6 @@
}
},
"commands": [
{
"command": "dev-pack-salesforce.forceCheckPackages",
"title": "Dev Pack for Salesforce: Install required node modules",
"shortTitle": "Install required node modules",
"icon": "$(package)"
},
{
"command": "dev-pack-salesforce.updateSettings",
"title": "Dev Pack for Salesforce: Update prettier formatting settings",
Expand All @@ -112,36 +100,6 @@
"shortTitle": "Delete all apex logs",
"icon": "$(trash)"
},
{
"command": "dev-pack-salesforce.checkEnvironment",
"title": "Dev Pack for Salesforce: Check Environment Health",
"shortTitle": "Check Environment",
"icon": "$(heart)"
},
{
"command": "dev-pack-salesforce.checkJava",
"title": "Dev Pack for Salesforce: Check Java Installation",
"shortTitle": "Check Java",
"icon": "$(symbol-method)"
},
{
"command": "dev-pack-salesforce.checkSalesforceCLI",
"title": "Dev Pack for Salesforce: Check Salesforce CLI",
"shortTitle": "Check SF CLI",
"icon": "$(cloud)"
},
{
"command": "dev-pack-salesforce.checkNodeJS",
"title": "Dev Pack for Salesforce: Check Node.js Installation",
"shortTitle": "Check Node.js",
"icon": "$(symbol-event)"
},
{
"command": "dev-pack-salesforce.showProjectInfo",
"title": "Dev Pack for Salesforce: Show Project Info",
"shortTitle": "Project Info",
"icon": "$(info)"
},
{
"command": "dev-pack-salesforce.openSfdxProject",
"title": "Dev Pack for Salesforce: Open sfdx-project.json",
Expand All @@ -161,10 +119,6 @@
"command": "dev-pack-salesforce.deleteApexLogs",
"when": "sfdx:project_opened"
},
{
"command": "dev-pack-salesforce.showProjectInfo",
"when": "sfdx:project_opened"
},
{
"command": "dev-pack-salesforce.openSfdxProject",
"when": "sfdx:project_opened"
Expand Down
19 changes: 0 additions & 19 deletions src/commands/BetterComments.js

This file was deleted.

109 changes: 0 additions & 109 deletions src/commands/EnvironmentHealth.js

This file was deleted.

16 changes: 0 additions & 16 deletions src/commands/ForceCheckPackages.js

This file was deleted.

Loading