I've recently been having an issue with ssms freezing and crashing while editing a sql script. The script size is 43KB, not large at all. I'm not executing the script, I'm just editing it.
The application logs show .NET Runtime error for ssms.exe System.OutOfMemoryException and an application error stating Faulting application name: Ssms.exe, version 2017.140.17289.0 Faulting module name KERNELBASE.dll, version 10.0.17134.556
This very specifically only happens when editing a .sql file and it is not consistent, so it is hard to reproduce.
Thanks in advance for any advice.