mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-19 01:25:40 -05:00
* code refactoring * Add filebrowser service and tests * change dataset reference * Address pr comments * add more tests * address pr comments * address pr comments and added more tests * minor change * minor fix * Fix test break and add dataset result check
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.FileBrowser.Contracts
|
|
{
|
|
/// <summary>
|
|
/// Parameters to pass to close file browser
|
|
/// </summary>
|
|
public class FileBrowserCloseParams
|
|
{
|
|
/// <summary>
|
|
/// Connection uri
|
|
/// </summary>
|
|
public string OwnerUri;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Response for closing the browser
|
|
/// </summary>
|
|
public class FileBrowserCloseResponse
|
|
{
|
|
/// <summary>
|
|
/// Result of the operation
|
|
/// </summary>
|
|
public bool Succeeded;
|
|
|
|
/// <summary>
|
|
/// Error message if any
|
|
/// </summary>
|
|
public string Message;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Requst to close the file browser
|
|
/// </summary>
|
|
class FileBrowserCloseRequest
|
|
{
|
|
public static readonly
|
|
RequestType<FileBrowserCloseParams, FileBrowserCloseResponse> Type =
|
|
RequestType<FileBrowserCloseParams, FileBrowserCloseResponse>.Create("filebrowser/close");
|
|
}
|
|
}
|