Skip to content

Commit ebaf787

Browse files
authored
Update environment variable name stored in settings.json (#2709)
For #2628
1 parent 5e92628 commit ebaf787

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

news/2 Fixes/2628.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update environment variable naming convention for `SPARK_HOME`, when stored in `settings.json`.

src/client/providers/updateSparkLibraryProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function updateSparkLibrary() {
1313
const pythonConfig = vscode.workspace.getConfiguration('python');
1414
const extraLibPath = 'autoComplete.extraPaths';
1515
// tslint:disable-next-line:no-invalid-template-strings
16-
const sparkHomePath = '${env.SPARK_HOME}';
16+
const sparkHomePath = '${env:SPARK_HOME}';
1717
pythonConfig.update(extraLibPath, [path.join(sparkHomePath, 'python'),
1818
path.join(sparkHomePath, 'python/pyspark')]).then(() => {
1919
//Done

0 commit comments

Comments
 (0)