mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -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>
|
||||
public class CopyResultsRequestResult
|
||||
{
|
||||
public string Results { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -12,7 +12,6 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TextCopy;
|
||||
using Microsoft.SqlTools.Hosting.Protocol;
|
||||
using Microsoft.SqlTools.ServiceLayer.Connection.Contracts;
|
||||
using Microsoft.SqlTools.ServiceLayer.Connection;
|
||||
@@ -798,8 +797,11 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
||||
pageStartRowIndex += rowsToFetch;
|
||||
} while (pageStartRowIndex < rowRange.End);
|
||||
}
|
||||
await ClipboardService.SetTextAsync(builder.ToString());
|
||||
await requestContext.SendResult(new CopyResultsRequestResult());
|
||||
CopyResultsRequestResult result = new CopyResultsRequestResult
|
||||
{
|
||||
Results = builder.ToString()
|
||||
};
|
||||
await requestContext.SendResult(result);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user