Skip to content

Commit

Permalink
Add missing commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanp413 committed Jul 23, 2022
1 parent eb4ab5d commit e6dd7c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
],
"api": "none",
"activationEvents": [
"onCommand:openremotessh.test",
"onCommand:openremotessh.openEmptyWindow",
"onCommand:openremotessh.openEmptyWindowInCurrentWindow",
"onCommand:openremotessh.openConfigFile",
Expand Down Expand Up @@ -142,11 +141,6 @@
"command": "openremotessh.explorer.add",
"title": "Add New",
"icon": "$(plus)"
},
{
"command": "openremotessh.test",
"title": "Test openremotessh",
"category": "Remote-SSH"
}
],
"resourceLabelFormatters": [
Expand Down
4 changes: 3 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
import Log from './common/logger';
import { RemoteSSHResolver, REMOTE_SSH_AUTHORITY } from './authResolver';
import { promptOpenRemoteSSHWindow } from './commands';
import { openSSHConfigFile, promptOpenRemoteSSHWindow } from './commands';
import { HostTreeDataProvider } from './hostTreeView';
import { getRemoteWorkspaceLocationData, RemoteLocationHistory } from './remoteLocationHistory';

Expand All @@ -25,6 +25,8 @@ export async function activate(context: vscode.ExtensionContext) {

context.subscriptions.push(vscode.commands.registerCommand('openremotessh.openEmptyWindow', () => promptOpenRemoteSSHWindow(false)));
context.subscriptions.push(vscode.commands.registerCommand('openremotessh.openEmptyWindowInCurrentWindow', () => promptOpenRemoteSSHWindow(true)));
context.subscriptions.push(vscode.commands.registerCommand('openremotessh.openConfigFile', () => openSSHConfigFile()));
context.subscriptions.push(vscode.commands.registerCommand('openremotessh.showLog', () => logger.show()));
}

export function deactivate() {
Expand Down

0 comments on commit e6dd7c5

Please # to comment.