Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Make InsertText wait for changes

Open
#463 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, powershell

Research direction

Start with the CurrentFile.InsertText entry point and reproduce the issue using the PowerShell pipeline shown in the body. The issue names no source file or test; done means repeated inserts into one file complete in the intended order without Start-Sleep or watching FileContext.

Written by the indexing model from the issue text.

Description

Area-Extension Terminal Issue-Bug

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($_) }
Dominant language
C#
Stars
767
Forks
266
Avg merge
3d 16h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PowerShell/PowerShellEditorServices

All issues in PowerShell/PowerShellEditorServices

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.