mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 17:23:29 -05:00
Merge from vscode 2c306f762bf9c3db82dc06c7afaa56ef46d72f79 (#14050)
* Merge from vscode 2c306f762bf9c3db82dc06c7afaa56ef46d72f79 * Fix breaks * Extension management fixes * Fix breaks in windows bundling * Fix/skip failing tests * Update distro * Add clear to nuget.config * Add hygiene task * Bump distro * Fix hygiene issue * Add build to hygiene exclusion * Update distro * Update hygiene * Hygiene exclusions * Update tsconfig * Bump distro for server breaks * Update build config * Update darwin path * Add done calls to notebook tests * Skip failing tests * Disable smoke tests
This commit is contained in:
@@ -192,7 +192,9 @@ export abstract class Modal extends Disposable implements IThemable {
|
||||
if (this._modalOptions.hasBackButton) {
|
||||
const container = DOM.append(this._modalHeaderSection, DOM.$('.modal-go-back'));
|
||||
this._backButton = new Button(container, { secondary: true });
|
||||
this._backButton.icon = 'backButtonIcon';
|
||||
this._backButton.icon = {
|
||||
classNames: 'backButtonIcon'
|
||||
};
|
||||
this._backButton.title = localize('modal.back', "Back");
|
||||
}
|
||||
|
||||
@@ -211,17 +213,23 @@ export abstract class Modal extends Disposable implements IThemable {
|
||||
this._messageSeverity = DOM.append(headerContainer, DOM.$('.dialog-message-severity'));
|
||||
this._detailsButtonContainer = DOM.append(headerContainer, DOM.$('.dialog-message-button'));
|
||||
this._toggleMessageDetailButton = new Button(this._detailsButtonContainer);
|
||||
this._toggleMessageDetailButton.icon = 'message-details-icon';
|
||||
this._toggleMessageDetailButton.icon = {
|
||||
classNames: 'message-details-icon'
|
||||
};
|
||||
this._toggleMessageDetailButton.label = SHOW_DETAILS_TEXT;
|
||||
this._register(this._toggleMessageDetailButton.onDidClick(() => this.toggleMessageDetail()));
|
||||
const copyMessageButtonContainer = DOM.append(headerContainer, DOM.$('.dialog-message-button'));
|
||||
this._copyMessageButton = new Button(copyMessageButtonContainer);
|
||||
this._copyMessageButton.icon = 'copy-message-icon';
|
||||
this._copyMessageButton.icon = {
|
||||
classNames: 'copy-message-icon'
|
||||
};
|
||||
this._copyMessageButton.label = COPY_TEXT;
|
||||
this._register(this._copyMessageButton.onDidClick(() => this._clipboardService.writeText(this.getTextForClipboard())));
|
||||
const closeMessageButtonContainer = DOM.append(headerContainer, DOM.$('.dialog-message-button'));
|
||||
this._closeMessageButton = new Button(closeMessageButtonContainer);
|
||||
this._closeMessageButton.icon = 'close-message-icon';
|
||||
this._closeMessageButton.icon = {
|
||||
classNames: 'close-message-icon'
|
||||
};
|
||||
this._closeMessageButton.label = CLOSE_TEXT;
|
||||
this._register(this._closeMessageButton.onDidClick(() => this.setError(undefined)));
|
||||
|
||||
|
||||
@@ -174,7 +174,9 @@ export default class ButtonComponent extends ComponentWithIconBase<azdata.Button
|
||||
if (this.iconPath) {
|
||||
if (!this._iconClass) {
|
||||
super.updateIcon();
|
||||
this._button.icon = this._iconClass + ' icon';
|
||||
this._button.icon = {
|
||||
classNames: this._iconClass + ' icon'
|
||||
};
|
||||
this.updateStyler();
|
||||
} else {
|
||||
super.updateIcon();
|
||||
|
||||
@@ -29,6 +29,8 @@ import { IComponent, IComponentDescriptor, IModelStore } from 'sql/platform/dash
|
||||
import { convertSizeToNumber } from 'sql/base/browser/dom';
|
||||
import { onUnexpectedError } from 'vs/base/common/errors';
|
||||
import { ILogService } from 'vs/platform/log/common/log';
|
||||
import { ILabelService } from 'vs/platform/label/common/label';
|
||||
import { IFileService } from 'vs/platform/files/common/files';
|
||||
|
||||
@Component({
|
||||
template: `
|
||||
@@ -59,7 +61,9 @@ export default class DiffEditorComponent extends ComponentBase<azdata.DiffEditor
|
||||
@Inject(IModelService) private _modelService: IModelService,
|
||||
@Inject(IModeService) private _modeService: IModeService,
|
||||
@Inject(ITextModelService) private _textModelService: ITextModelService,
|
||||
@Inject(ILogService) logService: ILogService
|
||||
@Inject(ILogService) logService: ILogService,
|
||||
@Inject(ILabelService) private labelService: ILabelService,
|
||||
@Inject(IFileService) private fileService: IFileService
|
||||
) {
|
||||
super(changeRef, el, logService);
|
||||
}
|
||||
@@ -94,7 +98,8 @@ export default class DiffEditorComponent extends ComponentBase<azdata.DiffEditor
|
||||
|
||||
let editorinput1 = this._instantiationService.createInstance(ResourceEditorInput, uri1, 'source', undefined, undefined);
|
||||
let editorinput2 = this._instantiationService.createInstance(ResourceEditorInput, uri2, 'target', undefined, undefined);
|
||||
this._editorInput = new DiffEditorInput('DiffEditor', undefined, editorinput1, editorinput2, true);
|
||||
this._editorInput = new DiffEditorInput('DiffEditor', undefined, editorinput1, editorinput2, true,
|
||||
this.labelService, this.fileService);
|
||||
this._editor.setInput(this._editorInput, undefined, undefined, cancellationTokenSource.token);
|
||||
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ export class ModelStore implements IModelStore {
|
||||
let promiseTracker = this._componentActions[componentId];
|
||||
if (promiseTracker) {
|
||||
// Run initial actions first to ensure they're done before later actions (and thus don't overwrite following actions)
|
||||
new Promise(resolve => {
|
||||
new Promise<void>(resolve => {
|
||||
promiseTracker.initial.forEach(action => action(component));
|
||||
resolve();
|
||||
}).then(() => {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { IEditorOptions, EditorOption } from 'vs/editor/common/config/editorOptions';
|
||||
import { IEditorOptions, EditorOption, InDiffEditorState } from 'vs/editor/common/config/editorOptions';
|
||||
import * as nls from 'vs/nls';
|
||||
import * as DOM from 'vs/base/browser/dom';
|
||||
import { ResourceEditorModel } from 'vs/workbench/common/editor/resourceEditorModel';
|
||||
@@ -58,7 +58,7 @@ export class QueryTextEditor extends BaseTextEditor {
|
||||
protected getConfigurationOverrides(): IEditorOptions {
|
||||
const options = super.getConfigurationOverrides();
|
||||
if (this.input) {
|
||||
options.inDiffEditor = false;
|
||||
options.inDiffEditor = InDiffEditorState.None;
|
||||
options.scrollBeyondLastLine = false;
|
||||
options.folding = false;
|
||||
options.renderIndentGuides = false;
|
||||
|
||||
Reference in New Issue
Block a user