mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user