mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -05:00
Fix clipboard (#2218)
* remove clipboard set text, add field in copyresults response * fix sendResult type * change result to results
This commit is contained in:
@@ -38,6 +38,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class CopyResultsRequestResult
|
public class CopyResultsRequestResult
|
||||||
{
|
{
|
||||||
|
public string Results { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ using System.IO;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using TextCopy;
|
|
||||||
using Microsoft.SqlTools.Hosting.Protocol;
|
using Microsoft.SqlTools.Hosting.Protocol;
|
||||||
using Microsoft.SqlTools.ServiceLayer.Connection.Contracts;
|
using Microsoft.SqlTools.ServiceLayer.Connection.Contracts;
|
||||||
using Microsoft.SqlTools.ServiceLayer.Connection;
|
using Microsoft.SqlTools.ServiceLayer.Connection;
|
||||||
@@ -798,8 +797,11 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
|||||||
pageStartRowIndex += rowsToFetch;
|
pageStartRowIndex += rowsToFetch;
|
||||||
} while (pageStartRowIndex < rowRange.End);
|
} while (pageStartRowIndex < rowRange.End);
|
||||||
}
|
}
|
||||||
await ClipboardService.SetTextAsync(builder.ToString());
|
CopyResultsRequestResult result = new CopyResultsRequestResult
|
||||||
await requestContext.SendResult(new CopyResultsRequestResult());
|
{
|
||||||
|
Results = builder.ToString()
|
||||||
|
};
|
||||||
|
await requestContext.SendResult(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user