Skip to content

Commit

Permalink
Review argument index for treeviews
Browse files Browse the repository at this point in the history
  • Loading branch information
alefragnani committed May 1, 2024
1 parent 35c4392 commit 27b24cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export async function activate(context: vscode.ExtensionContext) {
const hideGitWelcome = context.globalState.get<boolean>("hideGitWelcome", false);
vscode.commands.executeCommand("setContext", "projectManager.hiddenGitWelcome", hideGitWelcome);

vscode.commands.registerCommand("_projectManager.open", async (projectPath: string, profile: string) => {
vscode.commands.registerCommand("_projectManager.open", async (projectPath: string, projectName: string, profile: string) => {
const uri = buildProjectUri(projectPath);
if (!await canSwitchOnActiveWindow(CommandLocation.SideBar)) {
return;
Expand All @@ -87,7 +87,7 @@ export async function activate(context: vscode.ExtensionContext) {
vscode.commands.registerCommand("_projectManager.openInNewWindow", (node) => {
const uri = buildProjectUri(node.command.arguments[0]);
const openInNewWindow = shouldOpenInNewWindow(true, CommandLocation.SideBar);
vscode.commands.executeCommand("vscode.openFolder", uri, { forceProfile: node.command.arguments[1] , forceNewWindow: openInNewWindow } )
vscode.commands.executeCommand("vscode.openFolder", uri, { forceProfile: node.command.arguments[2] , forceNewWindow: openInNewWindow } )
.then(
value => ({}), // done
value => vscode.window.showInformationMessage(l10n.t("Could not open the project!")));
Expand Down
2 changes: 1 addition & 1 deletion vscode-project-manager-core

0 comments on commit 27b24cc

Please sign in to comment.