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
The GetWords(string) implementation in ComplexWriter.cs doesn't handle consecutive spaces efficiently -- it breaks every space character into a word in this case, which has poor performance.
We should ideally address those 2 issues to make the word wrapping logic more robust and efficient.
Summary of the new feature / enhancement
There are 2 improvements that should be made to the word wrapping logic in PowerShell formatting:
"\x1b[0m"(reset) but no"\x1b[m"in files likeComplexWriter.cs,ListWriter.csand more. (see Fix formatting to properly handle theResetVT sequences that appear in the middle of a string #26424 (comment))GetWords(string)implementation inComplexWriter.csdoesn't handle consecutive spaces efficiently -- it breaks every space character into a word in this case, which has poor performance.We should ideally address those 2 issues to make the word wrapping logic more robust and efficient.
Proposed technical implementation details (optional)
No response