Skip to content

Commit

Permalink
Implement VS Code workbench.view.explorer command
Browse files Browse the repository at this point in the history
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
  • Loading branch information
vzhukovs committed Jun 5, 2020
1 parent 74b20d3 commit d9a0973
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ import { MonacoEditor } from '@theia/monaco/lib/browser/monaco-editor';
import { TerminalFrontendContribution } from '@theia/terminal/lib/browser/terminal-frontend-contribution';
import { QuickOpenWorkspace } from '@theia/workspace/lib/browser/quick-open-workspace';
import { TerminalService } from '@theia/terminal/lib/browser/base/terminal-service';
import { FileNavigatorCommands } from '@theia/navigator/lib/browser/navigator-contribution';

export namespace VscodeCommands {
export const OPEN: Command = {
Expand Down Expand Up @@ -617,6 +618,11 @@ export class PluginVscodeCommandsContribution implements CommandContribution {
currentTerminal.dispose();
}
});
commands.registerCommand({
id: 'workbench.view.explorer'
}, {
execute: () => commands.executeCommand(FileNavigatorCommands.FOCUS.id)
});
commands.registerCommand({
id: 'copyFilePath'
}, {
Expand Down

0 comments on commit d9a0973

Please sign in to comment.