Fix clipboard (#2218)

* remove clipboard set text, add field in copyresults response

* fix sendResult type

* change result to results
This commit is contained in:
Christopher Suh
2023-09-08 13:15:08 -04:00
committed by GitHub
parent b8bf110760
commit 44dc3181c3
2 changed files with 6 additions and 3 deletions

View File

@@ -38,6 +38,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts
/// </summary>
public class CopyResultsRequestResult
{
public string Results { get; set; }
}
/// <summary>

View File

@@ -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