File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/databricks-vscode/src/bundle Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {LoginWizard} from "../configuration/LoginWizard";
1313import { CliWrapper } from "../cli/CliWrapper" ;
1414import { ConfigModel } from "../configuration/models/ConfigModel" ;
1515import { getSubProjects } from "./BundleFileSet" ;
16+ import { tmpdir } from "os" ;
1617
1718export async function promptToOpenSubProjects (
1819 projects : { absolute : Uri ; relative : Uri } [ ]
@@ -146,6 +147,9 @@ export class BundleInitWizard {
146147 isTransient : true ,
147148 location : TerminalLocation . Editor ,
148149 env : this . cli . getBundleInitEnvVars ( authProvider ) ,
150+ // Setting CWD avoids a possibility of the CLI picking up unrelated bundle configuration
151+ // in the current workspace root or while traversing up the folder structure.
152+ cwd : tmpdir ( ) ,
149153 } ) ;
150154 const args = [
151155 "bundle" ,
You can’t perform that action at this time.
0 commit comments