diff --git a/packages/salesforcedx-apex-debugger/package.json b/packages/salesforcedx-apex-debugger/package.json index 9551b6c32a..0c1055d5cd 100644 --- a/packages/salesforcedx-apex-debugger/package.json +++ b/packages/salesforcedx-apex-debugger/package.json @@ -8,9 +8,7 @@ "engines": { "vscode": "^1.26.0" }, - "categories": [ - "Debuggers" - ], + "categories": ["Debuggers"], "dependencies": { "@salesforce/salesforcedx-utils-vscode": "44.6.0", "async-lock": "1.0.0", @@ -42,15 +40,16 @@ "compile": "tsc -p ./", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", - "test": "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", - "test:unit": "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test/unit --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", - "test:integration": "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test/integration --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json" + "clean": + "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", + "test": + "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", + "test:unit": + "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test/unit --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", + "test:integration": + "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test/integration --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json" }, "nyc": { - "reporter": [ - "text-summary", - "lcov" - ] + "reporter": ["text-summary", "lcov"] } } diff --git a/packages/salesforcedx-apex-replay-debugger/package.json b/packages/salesforcedx-apex-replay-debugger/package.json index ad63d0be41..156c20db8e 100644 --- a/packages/salesforcedx-apex-replay-debugger/package.json +++ b/packages/salesforcedx-apex-replay-debugger/package.json @@ -1,7 +1,8 @@ { "name": "@salesforce/salesforcedx-apex-replay-debugger", "displayName": "Apex Replay Debug Adapter", - "description": "Implements the VS Code Debug Protocol for the Apex Replay Debugger", + "description": + "Implements the VS Code Debug Protocol for the Apex Replay Debugger", "version": "44.6.0", "publisher": "salesforce", "preview": true, @@ -9,9 +10,7 @@ "engines": { "vscode": "^1.26.0" }, - "categories": [ - "Debuggers" - ], + "categories": ["Debuggers"], "dependencies": { "@salesforce/salesforcedx-utils-vscode": "44.6.0", "vscode-debugadapter": "1.28.0", @@ -39,15 +38,16 @@ "compile": "tsc -p ./", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", - "test": "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", - "test:unit": "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test/unit --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", - "test:integration": "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test/integration --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json" + "clean": + "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", + "test": + "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", + "test:unit": + "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test/unit --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", + "test:integration": + "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test/integration --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json" }, "nyc": { - "reporter": [ - "text-summary", - "lcov" - ] + "reporter": ["text-summary", "lcov"] } } diff --git a/packages/salesforcedx-slds-linter/package.json b/packages/salesforcedx-slds-linter/package.json index 2829e7716d..397757f664 100644 --- a/packages/salesforcedx-slds-linter/package.json +++ b/packages/salesforcedx-slds-linter/package.json @@ -5,9 +5,7 @@ "version": "44.6.0", "publisher": "salesforce", "license": "BSD-3-Clause", - "categories": [ - "Other" - ], + "categories": ["Other"], "engines": { "vscode": "^1.26.0" }, @@ -41,10 +39,7 @@ "test:unit": "node ./node_modules/vscode/bin/test" }, "nyc": { - "reporter": [ - "text-summary", - "lcov" - ] + "reporter": ["text-summary", "lcov"] }, "dependencies": { "@salesforce/salesforcedx-utils-vscode": "44.6.0", diff --git a/packages/salesforcedx-sobjects-faux-generator/package.json b/packages/salesforcedx-sobjects-faux-generator/package.json index f74e6f6646..39327f1a28 100644 --- a/packages/salesforcedx-sobjects-faux-generator/package.json +++ b/packages/salesforcedx-sobjects-faux-generator/package.json @@ -1,7 +1,8 @@ { "name": "@salesforce/salesforcedx-sobjects-faux-generator", "displayName": "Salesforce SObject Faux Generator", - "description": "Fetches sobjects and generates their faux apex class to be used for Apex Language Server", + "description": + "Fetches sobjects and generates their faux apex class to be used for Apex Language Server", "version": "44.6.0", "publisher": "salesforce", "license": "BSD-3-Clause", @@ -38,14 +39,14 @@ "lint": "tslint --project .", "watch": "tsc -watch -p .", "clean": "shx rm -rf node_modules && shx rm -rf out", - "test": "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", - "test:unit": "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test/unit --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", - "test:integration": "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test/integration --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json" + "test": + "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", + "test:unit": + "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test/unit --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", + "test:integration": + "./node_modules/.bin/cross-env VSCODE_NLS_CONFIG={} ./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test/integration --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json" }, "nyc": { - "reporter": [ - "text-summary", - "lcov" - ] + "reporter": ["text-summary", "lcov"] } } diff --git a/packages/salesforcedx-utils-vscode/package.json b/packages/salesforcedx-utils-vscode/package.json index 4f22c9361a..1a1ec7d8e2 100644 --- a/packages/salesforcedx-utils-vscode/package.json +++ b/packages/salesforcedx-utils-vscode/package.json @@ -1,13 +1,12 @@ { "name": "@salesforce/salesforcedx-utils-vscode", "displayName": "SFDX Utilities for VS Code", - "description": "Provides utilies to interface the SFDX libraries with VS Code", + "description": + "Provides utilies to interface the SFDX libraries with VS Code", "version": "44.6.0", "publisher": "salesforce", "license": "BSD-3-Clause", - "categories": [ - "Other" - ], + "categories": ["Other"], "dependencies": { "cross-spawn": "6.0.5", "rxjs": "^5.4.1", @@ -44,15 +43,15 @@ "compile": "tsc -p ./", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", - "test": "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --timeout 20000 --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", - "test:unit": "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --timeout 20000 --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", + "clean": + "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", + "test": + "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --timeout 20000 --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", + "test:unit": + "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --timeout 20000 --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", "coverage": "./node_modules/.bin/nyc npm test" }, "nyc": { - "reporter": [ - "text-summary", - "lcov" - ] + "reporter": ["text-summary", "lcov"] } } diff --git a/packages/salesforcedx-visualforce-language-server/package.json b/packages/salesforcedx-visualforce-language-server/package.json index bdd0678ef7..4d56874880 100644 --- a/packages/salesforcedx-visualforce-language-server/package.json +++ b/packages/salesforcedx-visualforce-language-server/package.json @@ -33,14 +33,14 @@ "compile": "tsc -p ./ && shx cp -R test/fixtures out/test", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", - "test": "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", - "test:unit": "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json" + "clean": + "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", + "test": + "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", + "test:unit": + "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json" }, "nyc": { - "reporter": [ - "text-summary", - "lcov" - ] + "reporter": ["text-summary", "lcov"] } } diff --git a/packages/salesforcedx-visualforce-markup-language-server/package.json b/packages/salesforcedx-visualforce-markup-language-server/package.json index df7ae5320e..e597f2bd4a 100644 --- a/packages/salesforcedx-visualforce-markup-language-server/package.json +++ b/packages/salesforcedx-visualforce-markup-language-server/package.json @@ -7,9 +7,7 @@ "engines": { "vscode": "^1.26.0" }, - "activationEvents": [ - "onView:never" - ], + "activationEvents": ["onView:never"], "main": "./out/src/htmlLanguageService.js", "typings": "./out/src/htmlLanguageService", "devDependencies": { @@ -36,14 +34,14 @@ "compile": "tsc -p ./ && shx cp src/beautify/beautify-* out/src/beautify", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", - "test": "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", - "test:unit": "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json" + "clean": + "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", + "test": + "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json", + "test:unit": + "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --recursive out/test --reporter mocha-multi-reporters --reporter-options configFile=../../config/mochaConfig.json" }, "nyc": { - "reporter": [ - "text-summary", - "lcov" - ] + "reporter": ["text-summary", "lcov"] } } diff --git a/packages/salesforcedx-vscode-apex-debugger/package.json b/packages/salesforcedx-vscode-apex-debugger/package.json index 0110f4f0b5..0d577d33e8 100644 --- a/packages/salesforcedx-vscode-apex-debugger/package.json +++ b/packages/salesforcedx-vscode-apex-debugger/package.json @@ -20,9 +20,7 @@ "engines": { "vscode": "^1.26.0" }, - "categories": [ - "Debuggers" - ], + "categories": ["Debuggers"], "dependencies": { "@salesforce/salesforcedx-apex-debugger": "44.6.0", "vscode-debugprotocol": "1.28.0", @@ -51,7 +49,8 @@ "compile": "tsc -p ./", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", + "clean": + "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", "postinstall": "node ./node_modules/vscode/bin/install", "test": "node ../../scripts/run-test-with-top-level-extensions", "test:unit": "node ../../scripts/run-test-with-top-level-extensions" @@ -84,11 +83,10 @@ { "type": "apex", "label": "Apex Debugger", - "program": "./node_modules/@salesforce/salesforcedx-apex-debugger/out/src/adapter/apexDebug.js", + "program": + "./node_modules/@salesforce/salesforcedx-apex-debugger/out/src/adapter/apexDebug.js", "runtime": "node", - "languages": [ - "apex" - ], + "languages": ["apex"], "configurationSnippets": [ { "label": "%launch_snippet_label_text%", @@ -107,9 +105,7 @@ "configurationAttributes": { "launch": { "properties": { - "required": [ - "sfdxProject" - ], + "required": ["sfdxProject"], "userIdFilter": { "type": "array", "description": "%user_id_filter_text%", @@ -156,20 +152,14 @@ "default": "${workspaceRoot}" }, "trace": { - "type": [ - "boolean", - "string" - ], + "type": ["boolean", "string"], "description": "%trace_text%", "default": false }, "connectType": { "type": "string", "description": "%connect_type_text%", - "enum": [ - "DEFAULT", - "ISV_DEBUGGER" - ] + "enum": ["DEFAULT", "ISV_DEBUGGER"] } } } diff --git a/packages/salesforcedx-vscode-apex-replay-debugger/package.json b/packages/salesforcedx-vscode-apex-replay-debugger/package.json index 8534f7cf0b..829623f1d9 100644 --- a/packages/salesforcedx-vscode-apex-replay-debugger/package.json +++ b/packages/salesforcedx-vscode-apex-replay-debugger/package.json @@ -20,9 +20,7 @@ "engines": { "vscode": "^1.26.0" }, - "categories": [ - "Debuggers" - ], + "categories": ["Debuggers"], "dependencies": { "@salesforce/salesforcedx-apex-replay-debugger": "44.6.0", "async-lock": "1.0.0", @@ -55,7 +53,8 @@ "compile": "tsc -p ./", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", + "clean": + "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", "postinstall": "node ./node_modules/vscode/bin/install", "test": "node ../../scripts/run-test-with-top-level-extensions", "test:unit": "node ../../scripts/run-test-with-top-level-extensions" @@ -75,13 +74,8 @@ "languages": [ { "id": "apexlog", - "aliases": [ - "ApexLog", - "DebugLog" - ], - "extensions": [ - ".log" - ], + "aliases": ["ApexLog", "DebugLog"], + "extensions": [".log"], "firstLine": "^\\d{2}.*APEX_CODE,FINEST;.*VISUALFORCE,(FINER|FINEST);.*" } ], @@ -127,7 +121,8 @@ "explorer/context": [ { "command": "sfdx.launch.replay.debugger.logfile", - "when": "sfdx:project_opened && resourceIsFile && resourceLangId == 'apexlog'" + "when": + "sfdx:project_opened && resourceIsFile && resourceLangId == 'apexlog'" } ] }, @@ -167,11 +162,10 @@ { "type": "apex-replay", "label": "Apex Replay Debugger", - "program": "./node_modules/@salesforce/salesforcedx-apex-replay-debugger/out/src/adapter/apexReplayDebug.js", + "program": + "./node_modules/@salesforce/salesforcedx-apex-replay-debugger/out/src/adapter/apexReplayDebug.js", "runtime": "node", - "languages": [ - "apex" - ], + "languages": ["apex"], "variables": { "AskForLogFileName": "extension.replay-debugger.getLogFileName" }, @@ -192,9 +186,7 @@ "configurationAttributes": { "launch": { "properties": { - "required": [ - "logFile" - ], + "required": ["logFile"], "logFile": { "type": "string", "description": "%logfile_text%", @@ -206,10 +198,7 @@ "default": true }, "trace": { - "type": [ - "boolean", - "string" - ], + "type": ["boolean", "string"], "description": "%trace_text%", "default": false } diff --git a/packages/salesforcedx-vscode-apex/package.json b/packages/salesforcedx-vscode-apex/package.json index a249aab984..e37ed0b2c0 100644 --- a/packages/salesforcedx-vscode-apex/package.json +++ b/packages/salesforcedx-vscode-apex/package.json @@ -1,7 +1,8 @@ { "name": "salesforcedx-vscode-apex", "displayName": "Apex", - "description": "Provides code-editing features for the Apex programming language", + "description": + "Provides code-editing features for the Apex programming language", "qna": "https://github.com/forcedotcom/salesforcedx-vscode/issues", "bugs": { "url": "https://github.com/forcedotcom/salesforcedx-vscode/issues" @@ -20,9 +21,7 @@ "engines": { "vscode": "^1.26.0" }, - "categories": [ - "Languages" - ], + "categories": ["Languages"], "devDependencies": { "@types/chai": "^4.0.0", "@types/mocha": "2.2.38", @@ -39,9 +38,7 @@ "vscode": "1.1.17", "vscode-extension-telemetry": "0.0.17" }, - "extensionDependencies": [ - "salesforce.salesforcedx-vscode-core" - ], + "extensionDependencies": ["salesforce.salesforcedx-vscode-core"], "scripts": { "vscode:prepublish": "npm prune --production", "vscode:package": "vsce package", @@ -50,14 +47,13 @@ "compile": "tsc -p ./", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && cd out && node ../../../scripts/clean-all-but-jar.js && shx rm -rf coverage && shx rm -rf .nyc_output", + "clean": + "shx rm -rf node_modules && cd out && node ../../../scripts/clean-all-but-jar.js && shx rm -rf coverage && shx rm -rf .nyc_output", "postinstall": "node ./node_modules/vscode/bin/install", "test": "node ../../scripts/run-test-with-top-level-extensions", "test:unit": "node ../../scripts/run-test-with-top-level-extensions" }, - "activationEvents": [ - "workspaceContains:sfdx-project.json" - ], + "activationEvents": ["workspaceContains:sfdx-project.json"], "main": "./out/src", "contributes": { "viewsContainers": { @@ -142,10 +138,7 @@ "title": "%configuration_title%", "properties": { "salesforcedx-vscode-apex.java.home": { - "type": [ - "string", - "null" - ], + "type": ["string", "null"], "default": null, "description": "%java_home_description%" } @@ -154,15 +147,8 @@ "languages": [ { "id": "apex", - "aliases": [ - "Apex", - "apex" - ], - "extensions": [ - ".cls", - ".trigger", - ".apex" - ], + "aliases": ["Apex", "apex"], + "extensions": [".cls", ".trigger", ".apex"], "configuration": "./syntaxes/apex.configuration.json" } ], @@ -170,7 +156,8 @@ { "language": "apex", "scopeName": "source.apex", - "path": "./node_modules/@salesforce/apex-tmlanguage/grammars/apex.tmLanguage" + "path": + "./node_modules/@salesforce/apex-tmlanguage/grammars/apex.tmLanguage" } ], "snippets": [ diff --git a/packages/salesforcedx-vscode-core/package.json b/packages/salesforcedx-vscode-core/package.json index 9189094e8f..6575329474 100644 --- a/packages/salesforcedx-vscode-core/package.json +++ b/packages/salesforcedx-vscode-core/package.json @@ -21,9 +21,7 @@ "engines": { "vscode": "^1.26.0" }, - "categories": [ - "Other" - ], + "categories": ["Other"], "dependencies": { "@salesforce/core": "0.18.2", "@salesforce/salesforcedx-sobjects-faux-generator": "44.6.0", @@ -63,10 +61,13 @@ "compile": "tsc -p ./", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", + "clean": + "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", "postinstall": "node ./node_modules/vscode/bin/install", - "test": "cross-env CODE_TESTS_WORKSPACE='../system-tests/assets/sfdx-simple' node ./node_modules/vscode/bin/test", - "test:unit": "cross-env CODE_TESTS_WORKSPACE='../system-tests/assets/sfdx-simple' node ./node_modules/vscode/bin/test" + "test": + "cross-env CODE_TESTS_WORKSPACE='../system-tests/assets/sfdx-simple' node ./node_modules/vscode/bin/test", + "test:unit": + "cross-env CODE_TESTS_WORKSPACE='../system-tests/assets/sfdx-simple' node ./node_modules/vscode/bin/test" }, "activationEvents": [ "workspaceContains:sfdx-project.json", @@ -94,61 +95,75 @@ "editor/context": [ { "command": "sfdx.force.source.retrieve.current.file", - "when": "sfdx:project_opened && sfdx:default_username_has_no_change_tracking" + "when": + "sfdx:project_opened && sfdx:default_username_has_no_change_tracking" }, { "command": "sfdx.force.source.deploy.current.file", - "when": "sfdx:project_opened && sfdx:default_username_has_no_change_tracking" + "when": + "sfdx:project_opened && sfdx:default_username_has_no_change_tracking" }, { "command": "sfdx.force.source.delete.current.file", - "when": "sfdx:project_opened && sfdx:default_username_has_no_change_tracking" + "when": + "sfdx:project_opened && sfdx:default_username_has_no_change_tracking" } ], "explorer/context": [ { "command": "sfdx.force.apex.class.create", - "when": "explorerResourceIsFolder && resourceFilename != aura && resourceFilename != lightningcomponents && sfdx:project_opened" + "when": + "explorerResourceIsFolder && resourceFilename != aura && resourceFilename != lightningcomponents && sfdx:project_opened" }, { "command": "sfdx.force.visualforce.component.create", - "when": "explorerResourceIsFolder && resourceFilename != aura && resourceFilename != lightningcomponents && sfdx:project_opened" + "when": + "explorerResourceIsFolder && resourceFilename != aura && resourceFilename != lightningcomponents && sfdx:project_opened" }, { "command": "sfdx.force.visualforce.page.create", - "when": "explorerResourceIsFolder && resourceFilename != aura && resourceFilename != lightningcomponents && sfdx:project_opened" + "when": + "explorerResourceIsFolder && resourceFilename != aura && resourceFilename != lightningcomponents && sfdx:project_opened" }, { "command": "sfdx.force.lightning.app.create", - "when": "explorerResourceIsFolder && resourceFilename == aura && sfdx:project_opened" + "when": + "explorerResourceIsFolder && resourceFilename == aura && sfdx:project_opened" }, { "command": "sfdx.force.lightning.component.create", - "when": "explorerResourceIsFolder && resourceFilename == aura && sfdx:project_opened" + "when": + "explorerResourceIsFolder && resourceFilename == aura && sfdx:project_opened" }, { "command": "sfdx.force.lightning.event.create", - "when": "explorerResourceIsFolder && resourceFilename == aura && sfdx:project_opened" + "when": + "explorerResourceIsFolder && resourceFilename == aura && sfdx:project_opened" }, { "command": "sfdx.force.lightning.interface.create", - "when": "explorerResourceIsFolder && resourceFilename == aura && sfdx:project_opened" + "when": + "explorerResourceIsFolder && resourceFilename == aura && sfdx:project_opened" }, { "command": "sfdx.force.apex.trigger.create", - "when": "explorerResourceIsFolder && resourceFilename != aura && resourceFilename != lightningcomponents && sfdx:project_opened" + "when": + "explorerResourceIsFolder && resourceFilename != aura && resourceFilename != lightningcomponents && sfdx:project_opened" }, { "command": "sfdx.force.source.retrieve", - "when": "sfdx:project_opened && sfdx:default_username_has_no_change_tracking" + "when": + "sfdx:project_opened && sfdx:default_username_has_no_change_tracking" }, { "command": "sfdx.force.source.deploy", - "when": "sfdx:project_opened && sfdx:default_username_has_no_change_tracking" + "when": + "sfdx:project_opened && sfdx:default_username_has_no_change_tracking" }, { "command": "sfdx.force.source.delete", - "when": "sfdx:project_opened && sfdx:default_username_has_no_change_tracking" + "when": + "sfdx:project_opened && sfdx:default_username_has_no_change_tracking" } ], "commandPalette": [ @@ -174,31 +189,38 @@ }, { "command": "sfdx.force.source.pull", - "when": "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" + "when": + "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" }, { "command": "sfdx.force.source.pull.force", - "when": "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" + "when": + "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" }, { "command": "sfdx.force.source.push", - "when": "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" + "when": + "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" }, { "command": "sfdx.force.source.push.force", - "when": "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" + "when": + "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" }, { "command": "sfdx.force.source.status", - "when": "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" + "when": + "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" }, { "command": "sfdx.force.source.status.local", - "when": "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" + "when": + "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" }, { "command": "sfdx.force.source.status.remote", - "when": "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" + "when": + "sfdx:project_opened && !sfdx:isv_debug_project && sfdx:default_username_has_change_tracking" }, { "command": "sfdx.force.apex.test.run", @@ -542,23 +564,17 @@ "title": "%feature_previews_title%", "properties": { "salesforcedx-vscode-core.show-cli-success-msg": { - "type": [ - "boolean" - ], + "type": ["boolean"], "default": true, "description": "%show_cli_success_msg_description%" }, "salesforcedx-vscode-core.retrieve-test-code-coverage": { - "type": [ - "boolean" - ], + "type": ["boolean"], "default": false, "description": "%retrieve_test_code_coverage_text%" }, "salesforcedx-vscode-core.telemetry.enabled": { - "type": [ - "boolean" - ], + "type": ["boolean"], "default": true, "description": "%telemetry_enabled_description%" } @@ -567,11 +583,13 @@ "jsonValidation": [ { "fileMatch": "sfdx-project.json", - "url": "https://forcedotcom.github.io/schemas/sfdx-project.json/sfdx-project.schema.json" + "url": + "https://forcedotcom.github.io/schemas/sfdx-project.json/sfdx-project.schema.json" }, { "fileMatch": "*-scratch-def.json", - "url": "https://forcedotcom.github.io/schemas/project-scratch-def.json/project-scratch-def.schema.json" + "url": + "https://forcedotcom.github.io/schemas/project-scratch-def.json/project-scratch-def.schema.json" } ] } diff --git a/packages/salesforcedx-vscode-lightning/package.json b/packages/salesforcedx-vscode-lightning/package.json index bd41a9141b..4b61acaf91 100644 --- a/packages/salesforcedx-vscode-lightning/package.json +++ b/packages/salesforcedx-vscode-lightning/package.json @@ -20,9 +20,7 @@ "engines": { "vscode": "^1.26.0" }, - "categories": [ - "Programming Languages" - ], + "categories": ["Programming Languages"], "dependencies": { "@salesforce/salesforcedx-slds-linter": "44.6.0", "vscode-extension-telemetry": "0.0.17" @@ -40,9 +38,7 @@ "typescript": "2.6.2", "vscode": "1.1.17" }, - "extensionDependencies": [ - "salesforce.salesforcedx-vscode-core" - ], + "extensionDependencies": ["salesforce.salesforcedx-vscode-core"], "scripts": { "vscode:prepublish": "npm prune --production", "vscode:package": "vsce package", @@ -51,14 +47,13 @@ "compile": "tsc -p ./", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", + "clean": + "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", "postinstall": "node ./node_modules/vscode/bin/install", "test": "node ../../scripts/run-test-with-top-level-extensions", "test:unit": "node ../../scripts/run-test-with-top-level-extensions" }, - "activationEvents": [ - "workspaceContains:sfdx-project.json" - ], + "activationEvents": ["workspaceContains:sfdx-project.json"], "main": "./out/src", "contributes": { "languages": [ diff --git a/packages/salesforcedx-vscode-lwc-next/package.json b/packages/salesforcedx-vscode-lwc-next/package.json index efe826186a..24d2ed68f0 100644 --- a/packages/salesforcedx-vscode-lwc-next/package.json +++ b/packages/salesforcedx-vscode-lwc-next/package.json @@ -21,9 +21,7 @@ "engines": { "vscode": "^1.26.0" }, - "categories": [ - "Programming Languages" - ], + "categories": ["Programming Languages"], "dependencies": { "@salesforce/salesforcedx-utils-vscode": "44.6.0", "ajv": "^6.1.1", @@ -54,22 +52,24 @@ "compile": "tsc -p ./", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", + "clean": + "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", "postinstall": "node ./node_modules/vscode/bin/install", "pretest": "node ../../scripts/download-vscode-for-system-tests", - "test": "node ../../scripts/install-vsix-dependencies dbaeumer.vscode-eslint && node ../../scripts/run-test-with-top-level-extensions", - "test:unit": "node ../../scripts/install-vsix-dependencies dbaeumer.vscode-eslint && node ../../scripts/run-test-with-top-level-extensions" + "test": + "node ../../scripts/install-vsix-dependencies dbaeumer.vscode-eslint && node ../../scripts/run-test-with-top-level-extensions", + "test:unit": + "node ../../scripts/install-vsix-dependencies dbaeumer.vscode-eslint && node ../../scripts/run-test-with-top-level-extensions" }, - "activationEvents": [ - "workspaceContains:sfdx-project.json" - ], + "activationEvents": ["workspaceContains:sfdx-project.json"], "main": "./out/src", "contributes": { "menus": { "explorer/context": [ { "command": "sfdx.force.lightning.lwc.create", - "when": "explorerResourceIsFolder && resourceFilename == lwc && sfdx:project_opened" + "when": + "explorerResourceIsFolder && resourceFilename == lwc && sfdx:project_opened" } ], "commandPalette": [ diff --git a/packages/salesforcedx-vscode-lwc/package.json b/packages/salesforcedx-vscode-lwc/package.json index 44637122ac..1adf9fa52f 100644 --- a/packages/salesforcedx-vscode-lwc/package.json +++ b/packages/salesforcedx-vscode-lwc/package.json @@ -21,9 +21,7 @@ "engines": { "vscode": "^1.26.0" }, - "categories": [ - "Programming Languages" - ], + "categories": ["Programming Languages"], "dependencies": { "@salesforce/salesforcedx-utils-vscode": "44.6.0", "ajv": "^6.1.1", @@ -57,22 +55,24 @@ "compile": "tsc -p ./", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", + "clean": + "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", "postinstall": "node ./node_modules/vscode/bin/install", "pretest": "node ../../scripts/download-vscode-for-system-tests", - "test": "cross-env FORCE_LOAD_CURRENT_LWC=true node ../../scripts/install-vsix-dependencies dbaeumer.vscode-eslint && node ../../scripts/run-test-with-top-level-extensions", - "test:unit": "cross-env FORCE_LOAD_CURRENT_LWC=true node ../../scripts/install-vsix-dependencies dbaeumer.vscode-eslint && node ../../scripts/run-test-with-top-level-extensions" + "test": + "cross-env FORCE_LOAD_CURRENT_LWC=true node ../../scripts/install-vsix-dependencies dbaeumer.vscode-eslint && node ../../scripts/run-test-with-top-level-extensions", + "test:unit": + "cross-env FORCE_LOAD_CURRENT_LWC=true node ../../scripts/install-vsix-dependencies dbaeumer.vscode-eslint && node ../../scripts/run-test-with-top-level-extensions" }, - "activationEvents": [ - "workspaceContains:sfdx-project.json" - ], + "activationEvents": ["workspaceContains:sfdx-project.json"], "main": "./out/src", "contributes": { "menus": { "explorer/context": [ { "command": "sfdx.force.lightning.lwc.create", - "when": "explorerResourceIsFolder && resourceFilename == lightningcomponents && sfdx:project_opened" + "when": + "explorerResourceIsFolder && resourceFilename == lightningcomponents && sfdx:project_opened" } ], "commandPalette": [ diff --git a/packages/salesforcedx-vscode-visualforce/package.json b/packages/salesforcedx-vscode-visualforce/package.json index 776de3c197..763c59c73c 100644 --- a/packages/salesforcedx-vscode-visualforce/package.json +++ b/packages/salesforcedx-vscode-visualforce/package.json @@ -20,9 +20,7 @@ "engines": { "vscode": "^1.17.0" }, - "categories": [ - "Languages" - ], + "categories": ["Languages"], "dependencies": { "@salesforce/salesforcedx-visualforce-language-server": "44.6.0", "@salesforce/salesforcedx-visualforce-markup-language-server": "44.6.0", @@ -44,9 +42,7 @@ "sinon": "^2.3.6", "vscode": "1.1.17" }, - "extensionDependencies": [ - "salesforce.salesforcedx-vscode-core" - ], + "extensionDependencies": ["salesforce.salesforcedx-vscode-core"], "scripts": { "vscode:prepublish": "npm prune --production", "vscode:package": "vsce package", @@ -55,27 +51,20 @@ "compile": "tsc -p ./", "lint": "tslint --project .", "watch": "tsc -watch -p .", - "clean": "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", + "clean": + "shx rm -rf node_modules && shx rm -rf out && shx rm -rf coverage && shx rm -rf .nyc_output", "postinstall": "node ./node_modules/vscode/bin/install", "test": "node ../../scripts/run-test-with-top-level-extensionst", "test:unit": "node ../../scripts/run-test-with-top-level-extensions" }, - "activationEvents": [ - "workspaceContains:sfdx-project.json" - ], + "activationEvents": ["workspaceContains:sfdx-project.json"], "main": "./out/src/extension", "contributes": { "languages": [ { "id": "visualforce", - "aliases": [ - "Visualforce", - "visualforce" - ], - "extensions": [ - ".page", - ".component" - ], + "aliases": ["Visualforce", "visualforce"], + "extensions": [".page", ".component"], "configuration": "./syntaxes/visualforce.configuration.json" } ], @@ -107,19 +96,13 @@ "description": "%visualforce.format.wrapLineLength.desc%" }, "visualforce.format.unformatted": { - "type": [ - "string", - "null" - ], + "type": ["string", "null"], "scope": "resource", "default": "", "description": "%visualforce.format.unformatted.desc%" }, "visualforce.format.contentUnformatted": { - "type": [ - "string", - "null" - ], + "type": ["string", "null"], "scope": "resource", "default": "pre,code,textarea", "description": "%visualforce.format.contentUnformatted.desc%" @@ -137,10 +120,7 @@ "description": "%visualforce.format.preserveNewLines.desc%" }, "visualforce.format.maxPreserveNewLines": { - "type": [ - "number", - "null" - ], + "type": ["number", "null"], "scope": "resource", "default": null, "description": "%visualforce.format.maxPreserveNewLines.desc%" @@ -152,10 +132,7 @@ "description": "%visualforce.format.endWithNewline.desc%" }, "visualforce.format.extraLiners": { - "type": [ - "string", - "null" - ], + "type": ["string", "null"], "scope": "resource", "default": "head, body, /html", "description": "%visualforce.format.extraLiners.desc%" @@ -164,12 +141,7 @@ "type": "string", "scope": "resource", "default": "auto", - "enum": [ - "auto", - "force", - "force-aligned", - "force-expand-multiline" - ], + "enum": ["auto", "force", "force-aligned", "force-expand-multiline"], "enumDescriptions": [ "%visualforce.format.wrapAttributes.auto%", "%visualforce.format.wrapAttributes.force%", @@ -205,11 +177,7 @@ "visualforce.trace.server": { "type": "string", "scope": "window", - "enum": [ - "off", - "messages", - "verbose" - ], + "enum": ["off", "messages", "verbose"], "default": "off", "description": "%visualforce.trace.server.desc%" } diff --git a/packages/salesforcedx-vscode/package.json b/packages/salesforcedx-vscode/package.json index dbcae5784f..5b7dffe7fc 100644 --- a/packages/salesforcedx-vscode/package.json +++ b/packages/salesforcedx-vscode/package.json @@ -26,9 +26,7 @@ "vscode:sha256": "node ../../scripts/generate-sha256.js >> ../../SHA256", "vscode:publish": "node ../../scripts/publish-vsix.js" }, - "categories": [ - "Extension Packs" - ], + "categories": ["Extension Packs"], "extensionPack": [ "salesforce.salesforcedx-vscode-apex", "salesforce.salesforcedx-vscode-apex-debugger",