Commit 4a042a7
authored
Fix az login on Windows under cmd.exe (#1513)
## Changes
If the default windows shell is cmd.exe, the az login fails due to our
handling of the command arguments.
We've added the arg handling to fix issues when the vscode is installed
in the folder that contains spaces, and so our databricks cli calls were
failing. AZ cli doesn't have the same problems, as it's installed
separately from the extension, so here I'm reverting back to using
execFile without custom argument handling.
Fixes #1468
<!-- Summary of your changes that are easy to understand -->
## Tests
On win vm1 parent 1157a83 commit 4a042a7
File tree
3 files changed
+12
-6
lines changed- packages/databricks-vscode
- scripts
- src
- cli
- configuration/auth
3 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
0 commit comments