Skip to content

Commit e7943d0

Browse files
authored
Add "bricks" from the extension to the PATH of terminals (#411)
![Screenshot 2023-01-31 at 11 59 34](https://user-images.githubusercontent.com/40952/215742320-46b78448-c526-452c-b312-1da3ecf1d383.png)
1 parent d6e0e1b commit e7943d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/databricks-vscode/src/extension.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ export async function activate(
4545
return undefined;
4646
}
4747

48+
// Add the bricks binary to the PATH environment variable in terminals
49+
context.environmentVariableCollection.persistent = true;
50+
context.environmentVariableCollection.prepend(
51+
"PATH",
52+
`${context.asAbsolutePath("./bin")}:`
53+
);
54+
4855
const loggerManager = new LoggerManager(context);
4956
if (workspaceConfigs.loggingEnabled) {
5057
loggerManager.initLoggers();

0 commit comments

Comments
 (0)