Skip to content

Commit 513db7c

Browse files
Test
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
1 parent c6a6197 commit 513db7c

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

code/extensions/che-remote/src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
4141
const dashboardUrl = process.env.CHE_DASHBOARD_URL;
4242
if (dashboardUrl) {
4343
// enable command
44+
vscode.commands.executeCommand('setContext', 'che-remote.install-from-vsix-enabled', false);
4445
vscode.commands.executeCommand('setContext', 'che-remote.dashboard-enabled', true);
4546
context.subscriptions.push(
4647
vscode.commands.registerCommand('che-remote.command.openDashboard', () => {

code/src/vs/workbench/contrib/extensions/browser/extensions.contribution.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -846,22 +846,22 @@ class ExtensionsContributions extends Disposable implements IWorkbenchContributi
846846

847847
this.registerExtensionAction({
848848
id: SELECT_INSTALL_VSIX_EXTENSION_COMMAND_ID,
849-
title: localize2('InstallFromVSIX', 'Install from VSIX...'),
849+
title: localize2('InstallFromVSIX', 'Install FFFrom VSIX...'),
850850
category: ExtensionsLocalizedLabel,
851851
menu: [{
852852
id: MenuId.CommandPalette,
853-
when: ContextKeyExpr.or(CONTEXT_HAS_LOCAL_SERVER, CONTEXT_HAS_REMOTE_SERVER)
853+
when: ContextKeyExpr.equals('che-remote.install-from-vsix-enabled', false),
854854
}, {
855855
id: MenuId.ViewContainerTitle,
856-
when: ContextKeyExpr.and(ContextKeyExpr.equals('viewContainer', VIEWLET_ID), ContextKeyExpr.or(CONTEXT_HAS_LOCAL_SERVER, CONTEXT_HAS_REMOTE_SERVER)),
856+
when: ContextKeyExpr.equals('che-remote.install-from-vsix-enabled', true),
857857
group: '3_install',
858858
order: 1
859859
}],
860860
run: async (accessor: ServicesAccessor) => {
861861
const fileDialogService = accessor.get(IFileDialogService);
862862
const commandService = accessor.get(ICommandService);
863863
const vsixPaths = await fileDialogService.showOpenDialog({
864-
title: localize('installFromVSIX', "Install from VSIX"),
864+
title: localize('installFromVSIX', "Install frommm VSIX"),
865865
filters: [{ name: 'VSIX Extensions', extensions: ['vsix'] }],
866866
canSelectFiles: true,
867867
canSelectMany: true,

0 commit comments

Comments
 (0)