Commit 5f9cfd6
committed
Apply bundledModulesPath setting only when in development mode
This change improves our handling of the bundledModulesPath setting by
only making it active when VS Code is in development mode (either running
in the debugger or with the --extensionDevelopmentPath setting). This
enables extension developers to use their installed PowerShell extension's
bundled modules in normal circumstances, only switching to the
bundledModulesPath when they are running a development build.
This code also sets the default bundledModulesPath to a
peer (co-located) PowerShellEditorServices folder since most developers
will probably clone the two repos into the same folder. One would only
need to set their bundledModulesPath if their PSES repo folder was in an
unconventional path.
The bundledModulesPath setting will likely be renamed to something more
appropriate in the next update.1 parent 3d9319b commit 5f9cfd6
3 files changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | 326 | | |
328 | 327 | | |
329 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
| |||
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
106 | 127 | | |
107 | 128 | | |
108 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments