-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix wrong project issue #7752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix wrong project issue #7752
Conversation
firebase-vscode/src/core/index.ts
Outdated
| "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}`), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-P ${currentProjectId.value}?
There was a problem hiding this comment.
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?
| "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}`), |
There was a problem hiding this comment.
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}`); |
There was a problem hiding this comment.
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?
Description
Fixes an issue where the VSCE would execute commands in the directory default project instead of in the selected project.