Commit adba47d
committed
Fix New-EditorFile inserting text in wrong editor
The object returned from GetEditorContext() always points
to the original file in CurrentFile. We need to get an updated object
after opening or creating a file to insert text in the right editor.
Fix PowerShell/vscode-powershell#31921 parent ca227b5 commit adba47d
File tree
1 file changed
+2
-2
lines changed- module/PowerShellEditorServices/Commands/Public
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
0 commit comments