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
{{ message }}
Repository navigation
Using regular expression with trailing \n to find text is very slow in CRLF files #42142
bugIssue identified by VS Code Team member as probable bugeditor-findEditor find operationsfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesverifiedVerification succeeded
changed the title [-]Using regular expression with trailing \n to find text is very slow on Windows[/-][+]Using regular expression with trailing \n to find text is very slow in CRLF files[/+]on Feb 1, 2018
bugIssue identified by VS Code Team member as probable bugeditor-findEditor find operationsfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesverifiedVerification succeeded
Activity
alexdima commentedon Feb 1, 2018
EFanZh (@EFanZh) Thanks for insisting. I can reproduce, but only when the file uses CRLF
\r\nas an EOL terminator (not when the file uses LF\n).This is the slow method -- https://github.com/Microsoft/vscode/blob/53d1ca5868c5a9d745eb46e4b19ebacc400e1569/src/vs/editor/common/model/textModelSearch.ts#L165
[-]Using regular expression with trailing \n to find text is very slow on Windows[/-][+]Using regular expression with trailing \n to find text is very slow in CRLF files[/+]alexdima commentedon May 4, 2018
To reproduce:
.\nin regex mode