File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/databricks-vscode/src Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,16 @@ export async function activate(
183183 `${ path . delimiter } ${ context . asAbsolutePath ( "./bin" ) } `
184184 ) ;
185185
186+ // Export CLI_UPSTREAM vars to the terminal to see if extension users use the CLI directly
187+ context . environmentVariableCollection . replace (
188+ "DATABRICKS_CLI_UPSTREAM" ,
189+ "databricks-vscode-terminal"
190+ ) ;
191+ context . environmentVariableCollection . replace (
192+ "DATABRICKS_CLI_UPSTREAM_VERSION" ,
193+ packageMetadata . version
194+ ) ;
195+
186196 // We always use bundled terraform and databricks provider.
187197 // Updating environment collection means that the variables will be set in all terminals.
188198 // If users use different CLI version in their terminal it will only pick the variables if
You can’t perform that action at this time.
0 commit comments