Commit 142555b
committed
fix: use inspect() to check for explicit setting values
The previous code used config.get() which may return defaultValue from
other extensions' package.json (like ms-python.python setting
useEnvironmentsExtension to false) even when those extensions aren't
installed.
Now we use inspect() to check if the setting has been explicitly set
by the user (globalValue, workspaceValue, or workspaceFolderValue).
If not explicitly set, we default to true, allowing the extension
to activate properly in test environments and clean VS Code instances.1 parent 2b8619f commit 142555b
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
95 | 107 | | |
96 | | - | |
| 108 | + | |
97 | 109 | | |
98 | 110 | | |
99 | 111 | | |
| |||
0 commit comments