mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-10 02:02:35 -05:00
Merge from vscode a348d103d1256a06a2c9b3f9b406298a9fef6898 (#15681)
* Merge from vscode a348d103d1256a06a2c9b3f9b406298a9fef6898 * Fixes and cleanup * Distro * Fix hygiene yarn * delete no yarn lock changes file * Fix hygiene * Fix layer check * Fix CI * Skip lib checks * Remove tests deleted in vs code * Fix tests * Distro * Fix tests and add removed extension point * Skip failing notebook tests for now * Disable broken tests and cleanup build folder * Update yarn.lock and fix smoke tests * Bump sqlite * fix contributed actions and file spacing * Fix user data path * Update yarn.locks Co-authored-by: ADS Merger <karlb@microsoft.com>
This commit is contained in:
@@ -814,14 +814,14 @@ export class UndoRedoService implements IUndoRedoService {
|
||||
private _tryToSplitAndUndo(strResource: string, element: WorkspaceStackElement, ignoreResources: RemovedResources | null, message: string): WorkspaceVerificationError {
|
||||
if (element.canSplit()) {
|
||||
this._splitPastWorkspaceElement(element, ignoreResources);
|
||||
this._notificationService.info(message);
|
||||
this._notificationService.warn(message);
|
||||
return new WorkspaceVerificationError(this._undo(strResource, 0, true));
|
||||
} else {
|
||||
// Cannot safely split this workspace element => flush all undo/redo stacks
|
||||
for (const strResource of element.strResources) {
|
||||
this.removeElements(strResource);
|
||||
}
|
||||
this._notificationService.info(message);
|
||||
this._notificationService.warn(message);
|
||||
return new WorkspaceVerificationError();
|
||||
}
|
||||
}
|
||||
@@ -1009,7 +1009,7 @@ export class UndoRedoService implements IUndoRedoService {
|
||||
{ key: 'cannotResourceUndoDueToInProgressUndoRedo', comment: ['{0} is a label for an operation.'] },
|
||||
"Could not undo '{0}' because there is already an undo or redo operation running.", element.label
|
||||
);
|
||||
this._notificationService.info(message);
|
||||
this._notificationService.warn(message);
|
||||
return;
|
||||
}
|
||||
return this._invokeResourcePrepare(element, (cleanup) => {
|
||||
@@ -1167,14 +1167,14 @@ export class UndoRedoService implements IUndoRedoService {
|
||||
private _tryToSplitAndRedo(strResource: string, element: WorkspaceStackElement, ignoreResources: RemovedResources | null, message: string): WorkspaceVerificationError {
|
||||
if (element.canSplit()) {
|
||||
this._splitFutureWorkspaceElement(element, ignoreResources);
|
||||
this._notificationService.info(message);
|
||||
this._notificationService.warn(message);
|
||||
return new WorkspaceVerificationError(this._redo(strResource));
|
||||
} else {
|
||||
// Cannot safely split this workspace element => flush all undo/redo stacks
|
||||
for (const strResource of element.strResources) {
|
||||
this.removeElements(strResource);
|
||||
}
|
||||
this._notificationService.info(message);
|
||||
this._notificationService.warn(message);
|
||||
return new WorkspaceVerificationError();
|
||||
}
|
||||
}
|
||||
@@ -1298,7 +1298,7 @@ export class UndoRedoService implements IUndoRedoService {
|
||||
{ key: 'cannotResourceRedoDueToInProgressUndoRedo', comment: ['{0} is a label for an operation.'] },
|
||||
"Could not redo '{0}' because there is already an undo or redo operation running.", element.label
|
||||
);
|
||||
this._notificationService.info(message);
|
||||
this._notificationService.warn(message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ suite('UndoRedoService', () => {
|
||||
const resource1 = URI.file('test1.txt');
|
||||
const resource2 = URI.file('test2.txt');
|
||||
const service = createUndoRedoService(new class extends mock<IDialogService>() {
|
||||
async show() {
|
||||
override async show() {
|
||||
return {
|
||||
choice: 0 // confirm!
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user