mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 01:25:37 -05:00
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:
@@ -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());
|
||||
|
||||
@@ -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];
|
||||
33
src/sql/platform/query/common/query.ts
Normal file
33
src/sql/platform/query/common/query.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user