mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -05:00
@@ -22,6 +22,11 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts
|
||||
/// </summary>
|
||||
public class CopyResultsRequestParams : SubsetParams
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether to include the column headers.
|
||||
/// </summary>
|
||||
public bool IncludeHeaders { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The selections.
|
||||
/// </summary>
|
||||
|
||||
@@ -729,7 +729,9 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
||||
var lastRowIndex = rowRanges.Last().End;
|
||||
var builder = new StringBuilder();
|
||||
var pageSize = 200;
|
||||
if (Settings.QueryEditorSettings.Results.CopyIncludeHeaders)
|
||||
|
||||
// We need to respect IncludeHeaders from parameters instead of getting the config value as ADS can explicitly ask for headers
|
||||
if (requestParams.IncludeHeaders)
|
||||
{
|
||||
Validate.IsNotNullOrEmptyString(nameof(requestParams.OwnerUri), requestParams.OwnerUri);
|
||||
Query query;
|
||||
|
||||
Reference in New Issue
Block a user