Skip to content

New-EditorFile posts input to currently open editor #3192

Closed
PowerShell/PowerShellEditorServices
#1997
@msftrncs

Description

@msftrncs

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
Item Value
CPUs Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz (8 x 2794)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 15.91GB (8.81GB free)
Process Argv --crash-reporter-id b4df00f3-aa06-4238-a0b4-aaf53730304f
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry914:30256638
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt600cf:30251589

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions