diff --git a/packages/salesforcedx-vscode-lightning/package.json b/packages/salesforcedx-vscode-lightning/package.json index d89d4144c0..abc9c2180a 100644 --- a/packages/salesforcedx-vscode-lightning/package.json +++ b/packages/salesforcedx-vscode-lightning/package.json @@ -24,19 +24,19 @@ "Programming Languages" ], "dependencies": { + "@salesforce/salesforcedx-utils-vscode": "45.7.0", "change-case": "^3.1.0", - "aura-language-server": "2.0.8", - "lightning-lsp-common": "2.0.8", - "opn": "^5.4.0", + "aura-language-server": "2.0.9", + "lightning-lsp-common": "2.0.9", + "open": "^6.0.0", "vscode-extension-telemetry": "0.0.17", "vscode-languageclient": "^3.5.1" }, "devDependencies": { - "@salesforce/salesforcedx-utils-vscode": "45.7.0", "@salesforce/salesforcedx-test-utils-vscode": "45.7.0", "@types/chai": "^4.0.0", "@types/mocha": "2.2.38", - "@types/opn": "^5.1.0", + "@types/open": "^6.0.0", "@types/node": "8.9.3", "@types/sinon": "^2.3.2", "chai": "^4.0.2", @@ -103,7 +103,8 @@ "salesforce-lightning-explorer": [ { "id": "salesforce-lightning-components", - "name": "%lightning_explorer_name%" + "name": "%lightning_explorer_name%", + "when": "config.salesforcedx-vscode-lightning.show-lightning-explorer" } ] }, @@ -122,6 +123,18 @@ "title": "%lightning_open_component_title%", "icon": "resources/open.svg" } - ] + ], + "configuration": { + "type": "object", + "title": "%feature_previews_title%", + "properties": { + "salesforcedx-vscode-lightning.show-lightning-explorer": { + "type": "boolean", + "scope": "window", + "default": false, + "description": "%show_lightning_explorer_description%" + } + } + } } } diff --git a/packages/salesforcedx-vscode-lightning/package.nls.json b/packages/salesforcedx-vscode-lightning/package.nls.json index 7b077acae4..364bea3423 100644 --- a/packages/salesforcedx-vscode-lightning/package.nls.json +++ b/packages/salesforcedx-vscode-lightning/package.nls.json @@ -1,5 +1,7 @@ { "lightning_open_component_title": "SFDX: Open Lightning Component", "lightning_explorer_title": "Lightning Explorer", - "lightning_explorer_name": "Lightning Components" + "feature_previews_title": "Salesforce Feature Previews", + "lightning_explorer_name": "Lightning Components", + "show_lightning_explorer_description": "Show the lightning explorer view" } diff --git a/packages/salesforcedx-vscode-lightning/src/commands/quickpick/quickpick.ts b/packages/salesforcedx-vscode-lightning/src/commands/quickpick/quickpick.ts index 21a5ddc067..d028bce639 100644 --- a/packages/salesforcedx-vscode-lightning/src/commands/quickpick/quickpick.ts +++ b/packages/salesforcedx-vscode-lightning/src/commands/quickpick/quickpick.ts @@ -5,7 +5,7 @@ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import { paramCase } from 'change-case'; -import opn = require('opn'); +import opn = require('open'); import { Uri, window, workspace } from 'vscode'; import { LanguageClient } from 'vscode-languageclient'; import { COMPONENT_LIBRARY_BUNDLE_LINK } from '../../constants'; diff --git a/packages/salesforcedx-vscode-lwc/package.json b/packages/salesforcedx-vscode-lwc/package.json index 186ed0ab7d..0b55b40bb4 100644 --- a/packages/salesforcedx-vscode-lwc/package.json +++ b/packages/salesforcedx-vscode-lwc/package.json @@ -28,8 +28,8 @@ "@salesforce/salesforcedx-utils-vscode": "45.7.0", "ajv": "^6.1.1", "eslint": "5.0.0", - "lwc-language-server": "2.0.8", - "lightning-lsp-common": "2.0.8", + "lwc-language-server": "2.0.9", + "lightning-lsp-common": "2.0.9", "rxjs": "^5.4.1", "vscode-extension-telemetry": "0.0.17", "vscode-languageclient": "^3.5.1"