Query execution settings support (#812)

* WIP

* WIP 3

* WIP 3

* Additional query settings updates

* Add settings tets

* Address code review feeback

* Updates from testing
This commit is contained in:
Karl Burtram
2019-05-16 15:21:17 -07:00
committed by GitHub
parent db70f421ae
commit 151a2de625
14 changed files with 1119 additions and 69 deletions

View File

@@ -32,8 +32,10 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.Workspace
// ... And there is a callback registered for the file closed event
ScriptFile closedFile = null;
workspaceService.RegisterTextDocCloseCallback((f, c) =>
string closedUri = null;
workspaceService.RegisterTextDocCloseCallback((u, f, c) =>
{
closedUri = u;
closedFile = f;
return Task.FromResult(true);
});
@@ -55,6 +57,7 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.Workspace
// ... The provided script file should be the one we created
Assert.NotNull(closedFile);
Assert.Equal(openedFile, closedFile);
Assert.Equal(TestObjects.ScriptUri, closedUri);
}
[Fact]
@@ -68,7 +71,7 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.Workspace
// ... And there is a callback registered for the file closed event
bool callbackCalled = false;
workspaceService.RegisterTextDocCloseCallback((f, c) =>
workspaceService.RegisterTextDocCloseCallback((u, f, c) =>
{
callbackCalled = true;
return Task.FromResult(true);