Closed sixlettervariables closed 1 week ago
@DustinCampbell This sounds to me like the Code editor is hanging while evaluating our textmate grammar to classify the file. I would consider this a Code perf bug. Thoughts?
I'm surprised that this would be slow since it's inside of a string. It could be related to https://github.com/dotnet/csharp-tmLanguage/issues/101 though.
Closing as VS Code has added guards against slow textmate grammar parsing.
Environment data
VS Code version: 1.24.1 (shell 1.7.12, node 7.9.0, commit 24f62626b) C# Extension version: 1.15.2
Steps to reproduce
class M { static Regex t = new Regex(@"^T((N'.+?'), (NULL|N'[^']+'),.+?, (NULL|N'\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d.\d+'), (N'[^']+'), (N'[^']+'), (NULL|N'\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d.\d+'), (NULL|N'[^']+'), (N'.+?'), (NULL|N'.+?'), (\d+)\s*, (NULL|N'.+?'), (NULL|N'.+?'), (N'.+?'), (NULL|N'.+?'), (NULL|N'.+?'), (NULL|N'.+?'), (NULL|N'.+?'), (NULL|N'.+?'),.+)$"); // ...smallest repro }