Skip to content

Commit 991ce9f

Browse files
author
Tim Etchells
committed
Fix default connection not reporting success
1 parent 6925aec commit 991ce9f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dev/src/command/CommandUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function createCommands(): vscode.Disposable[] {
4848
// - or the user's selected TreeView object (if run from the context menu) -> IE either a Project or Connection
4949
return [
5050
vscode.commands.registerCommand(Commands.NEW_CONNECTION, () => NewConnectionCmd.newConnectionCmd()),
51-
vscode.commands.registerCommand(Commands.NEW_DEFAULT_CONNECTION, () => NewConnectionCmd.tryAddConnection(NewConnectionCmd.DEFAULT_CONNINFO)),
51+
vscode.commands.registerCommand(Commands.NEW_DEFAULT_CONNECTION, () => NewConnectionCmd.newConnectionCmd(NewConnectionCmd.DEFAULT_CONNINFO)),
5252

5353
vscode.commands.registerCommand(Commands.REMOVE_CONNECTION, (selection) => removeConnectionCmd(selection)),
5454
vscode.commands.registerCommand(Commands.REFRESH_CONNECTION, (selection) => refreshConnectionCmd(selection)),

dev/src/command/NewConnectionCmd.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ async function getConnectInfo(): Promise<MCUtil.IConnectionInfo | undefined> {
103103
}
104104

105105
async function offerToOpenWorkspace(connection: Connection): Promise<void> {
106+
Log.d(`offerToOpenWorkspace ${connection.mcUri} workspace=${connection.workspacePath}`);
107+
106108
let inMcWorkspace = false;
107109
// See if the user has this connection's workspace open
108110
const wsFolders = vscode.workspace.workspaceFolders;

0 commit comments

Comments
 (0)