File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11## NEXT
22
3+ - [ Fixed] Fixed an issue where command would be executed against directory default project instead of the currently selected project.
4+
5+ ## 0.10.0
6+
37- [ Added] UI overhaul.
48- [ Added] Added View Docs button to see generated documentation for your schema and connectors.
59- [ Fixed] Improved detection for emulator start up and shut down.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { pluginLogger, LogLevel } from '../logger-wrapper';
77import { getSettings } from "../utils/settings" ;
88import { setEnabled } from "../../../src/experiments" ;
99import { registerUser } from "./user" ;
10- import { registerProject } from "./project" ;
10+ import { currentProjectId , registerProject } from "./project" ;
1111import { registerQuickstart } from "./quickstart" ;
1212import { registerOptions } from "../options" ;
1313import { upsertFile } from "../data-connect/file-utils" ;
@@ -61,7 +61,7 @@ export async function registerCore(
6161 workspaceFolder , // The workspace folder
6262 "firebase init dataconnect" , // how you name the task
6363 "firebase init dataconnect" , // Shows up as MyTask: name
64- new vscode . ShellExecution ( `${ settings . firebasePath } init dataconnect` ) ,
64+ new vscode . ShellExecution ( `${ settings . firebasePath } init dataconnect --project ${ currentProjectId . value } ` ) ,
6565 ) ,
6666 ) ;
6767 } ) ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import vscode, { Disposable } from "vscode";
44import { checkLogin } from "../core/user" ;
55import { DATA_CONNECT_EVENT_NAME } from "../analytics" ;
66import { getSettings } from "../utils/settings" ;
7+ import { currentProjectId } from "../core/project" ;
78
89const environmentVariables : Record < string , string > = { } ;
910
@@ -26,7 +27,7 @@ export function runCommand(command: string) {
2627 // TODO: This fails if the interactive shell is not expecting a command, such
2728 // as when oh-my-zsh asking for (Y/n) to updates during startup.
2829 // Consider using an non-interactive shell.
29- terminal . sendText ( command ) ;
30+ terminal . sendText ( ` ${ command } -P ${ currentProjectId . value } ` ) ;
3031}
3132
3233export function runTerminalTask (
@@ -81,7 +82,7 @@ export function registerTerminalTasks(
8182 // TODO: optional debug mode
8283 runTerminalTask (
8384 "firebase emulators" ,
84- `${ settings . firebasePath } emulators:start` ,
85+ `${ settings . firebasePath } emulators:start --project ${ currentProjectId . value } ` ,
8586 ) ;
8687 } ) ;
8788
You can’t perform that action at this time.
0 commit comments