Commit f1c4ae5
authored
Create
This prevents accidental removal (and breakage of the extension) by
disallowing `Remove-Variable` from removing `$psEditor`. While it's not
expected anyone would do this, glob expressions may include the variable
name and when piped to `Remove-Variable` resulted in a user-reported
breakage.$psEditor as a constant (#1647)1 parent 262aab7 commit f1c4ae5
File tree
1 file changed
+3
-4
lines changed- src/PowerShellEditorServices/Services/Extension
1 file changed
+3
-4
lines changedLines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 114 | + | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
| |||
0 commit comments