mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Set cell preview mode when toggling edit mode. (#20220)
* Also fix leftover settings changes in markdown smoke test.
This commit is contained in:
@@ -436,6 +436,7 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges {
|
|||||||
this.cellModel.showMarkdown = false;
|
this.cellModel.showMarkdown = false;
|
||||||
} else {
|
} else {
|
||||||
this.markdownMode = this.cellModel.showMarkdown;
|
this.markdownMode = this.cellModel.showMarkdown;
|
||||||
|
this.previewMode = this.cellModel.showPreview;
|
||||||
}
|
}
|
||||||
this.updatePreview();
|
this.updatePreview();
|
||||||
this._changeRef.detectChanges();
|
this._changeRef.detectChanges();
|
||||||
|
|||||||
@@ -294,6 +294,7 @@ export function setup(opts: minimist.ParsedArgs) {
|
|||||||
}
|
}
|
||||||
await app.workbench.quickaccess.runCommand('workbench.action.revertAndCloseActiveEditor');
|
await app.workbench.quickaccess.runCommand('workbench.action.revertAndCloseActiveEditor');
|
||||||
}
|
}
|
||||||
|
await app.workbench.settingsEditor.clearUserSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function verifyToolbarKeyboardShortcut(app: Application, keyboardShortcut: string, selector: string) {
|
async function verifyToolbarKeyboardShortcut(app: Application, keyboardShortcut: string, selector: string) {
|
||||||
@@ -311,6 +312,7 @@ export function setup(opts: minimist.ParsedArgs) {
|
|||||||
await app.workbench.sqlNotebook.waitForTextCellPreviewContent(testText, selector);
|
await app.workbench.sqlNotebook.waitForTextCellPreviewContent(testText, selector);
|
||||||
await app.workbench.quickaccess.runCommand('workbench.action.revertAndCloseActiveEditor');
|
await app.workbench.quickaccess.runCommand('workbench.action.revertAndCloseActiveEditor');
|
||||||
}
|
}
|
||||||
|
await app.workbench.settingsEditor.clearUserSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
it('can bold selected text', async function () {
|
it('can bold selected text', async function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user