Fixing bad data issue w/closing/opening untitled doc (#142)

* Adding useful unit tests for this functionality
* Adding callback functionality for when a file is closed

* Fixing bad data issue w/closing/opening untitled doc

* Adding useful unit tests for this functionality
* Adding callback functionality for when a file is closed

* Moving from public to internal
This commit is contained in:
Benjamin Russell
2016-11-09 15:36:42 -08:00
committed by Karl Burtram
parent ebe155bb94
commit eba383e251
3 changed files with 141 additions and 8 deletions

View File

@@ -14,7 +14,12 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting.Protocol
/// </summary>
public class EventContext
{
private MessageWriter messageWriter;
private readonly MessageWriter messageWriter;
/// <summary>
/// Parameterless constructor required for mocking
/// </summary>
public EventContext() { }
public EventContext(MessageWriter messageWriter)
{