Skip to content

Make InsertText wait for changes #463

Open
@SeeminglyScience

Description

@SeeminglyScience

Currently if you are making a lot of changes to the same file you need to either use Start-Sleep after each call or watch FileContext for the changes to show. Otherwise it won't be inserted in the correct position.

This can be demonstrated by running:

# These characters will be inserted in a random order.
'abcdefg'.ToCharArray() | % { $psEditor.GetEditorContext().CurrentFile.InsertText($_) }

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