You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have an editor open, with some content, and for ease, place cursor at begining of the document, with it visible.
Execute "contents" | New-EditorFile "somefile"
You will find "contents" pasted at the cursor in the currently opened document, but will be switched to a new editor with a blank document. (Note, if some text was selected in the current document, it will be replaced by the pasted text meant for the new document.)
Extension version: 2020.6.0
VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:48:04.245Z)
OS version: Windows_NT x64 10.0.19042
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz (8 x 2794)
I thought I was running PowerShell Preview extension, but for some reason the preview extension was disabled ... switched to the preview extension, version 2020.9.0 and the issue occurs exactly the same.
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.
FixPowerShell/vscode-powershell#3192
Issue Type: Bug
Have an editor open, with some content, and for ease, place cursor at begining of the document, with it visible.
Execute
"contents" | New-EditorFile "somefile"
You will find "contents" pasted at the cursor in the currently opened document, but will be switched to a new editor with a blank document. (Note, if some text was selected in the current document, it will be replaced by the pasted text meant for the new document.)
Extension version: 2020.6.0
VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:48:04.245Z)
OS version: Windows_NT x64 10.0.19042
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: