mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-15 17:23:32 -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
40 lines
1.1 KiB
C#
40 lines
1.1 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 for validating selected file paths
|
|
/// </summary>
|
|
public class FileBrowserValidateParams
|
|
{
|
|
/// <summary>
|
|
/// Connection uri
|
|
/// </summary>
|
|
public string OwnerUri;
|
|
|
|
/// <summary>
|
|
/// Type of service that uses the file browser
|
|
/// </summary>
|
|
public string ServiceType;
|
|
|
|
/// <summary>
|
|
/// Selected files
|
|
/// </summary>
|
|
public string[] SelectedFiles;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Requst to validate the selected file paths
|
|
/// </summary>
|
|
class FileBrowserValidateRequest
|
|
{
|
|
public static readonly
|
|
RequestType<FileBrowserValidateParams, bool> Type =
|
|
RequestType<FileBrowserValidateParams, bool>.Create("filebrowser/validate");
|
|
}
|
|
}
|