Messages panel wordwrap (#10970)

* Add CodeQL Analysis workflow (#10195)

* Add CodeQL Analysis workflow

* Fix path

* fix word wrap support in the message panel

* fix width on message treee

* fix import

* fix settings editor to reflect the changes in the settings ids

* fix tests

* add configuration upgrader

* make sure to maintian execution order

* make the compiler happy

* add tests for upgrader

Co-authored-by: Justin Hutchings <jhutchings1@users.noreply.github.com>
This commit is contained in:
Anthony Dresser
2020-06-29 16:25:11 -07:00
committed by GitHub
parent 6b8eafbf2e
commit 93a88e38fe
17 changed files with 477 additions and 284 deletions

View File

@@ -8,10 +8,14 @@ import { getConfigurationKeys, IConfigurationOverrides, IConfigurationService, g
export class TestConfigurationService implements IConfigurationService {
public _serviceBrand: undefined;
private configuration: { user: { [key: string]: any }; workspace: { [key: string]: any } } = {
private configuration: { user?: { [key: string]: any }; workspace?: { [key: string]: any } };
constructor(configuration: { user?: { [key: string]: any }; workspace?: { [key: string]: any } } = {
user: {},
workspace: {}
};
}) {
this.configuration = configuration;
}
public reloadConfiguration<T>(): Promise<T> {
return Promise.resolve(this.getValue());

View File

@@ -10,18 +10,3 @@ export const configCopyRemoveNewLine = 'copyRemoveNewLine';
export const configShowBatchTime = 'showBatchTime';
export const querySection = 'query';
export const shortcutStart = 'shortcut';
export const tabColorModeOff = 'off';
export const tabColorModeBorder = 'border';
export const tabColorModeFill = 'fill';
export const defaultChartType = 'defaultChartType';
export const chartTypeBar = 'bar';
export const chartTypeDoughnut = 'doughnut';
export const chartTypeHorizontalBar = 'horizontalBar';
export const chartTypeLine = 'line';
export const chartTypePie = 'pie';
export const chartTypeScatter = 'scatter';
export const chartTypeTimeSeries = 'timeSeries';
export const allChartTypes = [chartTypeBar, chartTypeDoughnut, chartTypeHorizontalBar, chartTypeLine,
chartTypePie, chartTypeScatter, chartTypeTimeSeries];

View File

@@ -0,0 +1,33 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export interface IQueryEditorConfiguration {
readonly results: {
readonly saveAsCsv: {
readonly includeHeaders: boolean,
readonly delimiter: string,
readonly lineSeperator: string,
readonly textIdentifier: string,
readonly encoding: string
},
readonly saveAsXml: {
readonly formatted: string,
readonly encoding: string
},
readonly streaming: boolean,
readonly copyIncludeHeaders: boolean,
readonly copyRemoveNewLine: boolean
},
readonly messages: {
readonly showBatchTime: boolean,
readonly wordwrap: boolean
},
readonly chart: {
readonly defaultChartType: 'bar' | 'doughnut' | 'horizontalBar' | 'line' | 'pie' | 'scatter' | 'timeSeries',
},
readonly tabColorMode: 'off' | 'border' | 'fill',
readonly showConnectionInfoInTitle: boolean;
readonly promptToSaveGeneratedFiles: boolean;
}