Skip to content

Conversation

@joehan
Copy link
Contributor

@joehan joehan commented Sep 26, 2024

Description

Fixes an issue where the VSCE would execute commands in the directory default project instead of in the selected project.

@joehan joehan requested a review from hlshen September 26, 2024 20:47
"firebase init dataconnect", // how you name the task
"firebase init dataconnect", // Shows up as MyTask: name
new vscode.ShellExecution(`${settings.firebasePath} init dataconnect`),
new vscode.ShellExecution(`${settings.firebasePath} init dataconnect ${currentProjectId.value}`),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-P ${currentProjectId.value}?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Is --project more clear?

@joehan joehan enabled auto-merge (squash) September 27, 2024 01:20
@joehan joehan merged commit e11125f into master Sep 27, 2024
@joehan joehan deleted the jh-project branch September 27, 2024 01:30
"firebase init dataconnect", // how you name the task
"firebase init dataconnect", // Shows up as MyTask: name
new vscode.ShellExecution(`${settings.firebasePath} init dataconnect`),
new vscode.ShellExecution(`${settings.firebasePath} init dataconnect --project ${currentProjectId.value}`),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this guaranteed to be non-empty when the init button is shown? I thought there's a project selection prompt in the CLI or something

// as when oh-my-zsh asking for (Y/n) to updates during startup.
// Consider using an non-interactive shell.
terminal.sendText(command);
terminal.sendText(`${command} -P ${currentProjectId.value}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we use the long form --project for consistency and readability?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants