Skip to content

Commit

Permalink
Fix default connection not reporting success
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Etchells committed Jan 15, 2019
1 parent 6925aec commit 991ce9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dev/src/command/CommandUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function createCommands(): vscode.Disposable[] {
// - or the user's selected TreeView object (if run from the context menu) -> IE either a Project or Connection
return [
vscode.commands.registerCommand(Commands.NEW_CONNECTION, () => NewConnectionCmd.newConnectionCmd()),
vscode.commands.registerCommand(Commands.NEW_DEFAULT_CONNECTION, () => NewConnectionCmd.tryAddConnection(NewConnectionCmd.DEFAULT_CONNINFO)),
vscode.commands.registerCommand(Commands.NEW_DEFAULT_CONNECTION, () => NewConnectionCmd.newConnectionCmd(NewConnectionCmd.DEFAULT_CONNINFO)),

vscode.commands.registerCommand(Commands.REMOVE_CONNECTION, (selection) => removeConnectionCmd(selection)),
vscode.commands.registerCommand(Commands.REFRESH_CONNECTION, (selection) => refreshConnectionCmd(selection)),
Expand Down
2 changes: 2 additions & 0 deletions dev/src/command/NewConnectionCmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ async function getConnectInfo(): Promise<MCUtil.IConnectionInfo | undefined> {
}

async function offerToOpenWorkspace(connection: Connection): Promise<void> {
Log.d(`offerToOpenWorkspace ${connection.mcUri} workspace=${connection.workspacePath}`);

let inMcWorkspace = false;
// See if the user has this connection's workspace open
const wsFolders = vscode.workspace.workspaceFolders;
Expand Down

0 comments on commit 991ce9f

Please sign in to comment.