Skip to content

Commit

Permalink
Remove labels in commands to hide them from command palette
Browse files Browse the repository at this point in the history
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
  • Loading branch information
vzhukovs committed Mar 1, 2019
1 parent 71ad540 commit f67ffc6
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ import { ResourceProvider } from '@theia/core';

export namespace VscodeCommands {
export const OPEN: Command = {
id: 'vscode.open',
label: 'VSCode open link'
id: 'vscode.open'
};

export const DIFF: Command = {
id: 'vscode.diff',
label: 'VSCode diff'
id: 'vscode.diff'
};

export const SET_CONTEXT: Command = {
Expand Down Expand Up @@ -70,7 +68,7 @@ export class PluginVscodeCommandsContribution implements CommandContribution {
});

commands.registerCommand(VscodeCommands.DIFF, {
isVisible: () => true,
isVisible: () => false,
// tslint:disable-next-line: no-any
execute: async uris => {
const [left, right] = uris;
Expand All @@ -86,7 +84,7 @@ export class PluginVscodeCommandsContribution implements CommandContribution {
}
});
commands.registerCommand(VscodeCommands.PREVIEW_HTML, {
isVisible: () => true,
isVisible: () => false,
// tslint:disable-next-line: no-any
execute: async (resource: URI, position?: any, label?: string, options?: any) => {
label = label || resource.fsPath;
Expand Down

0 comments on commit f67ffc6

Please sign in to comment.