mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
set mode explicitly to notebook (#18089)
* set mode explicitly to notebook * move setMode to untitledNotebookInput * wait until input is resolved for setMode * invoke only when textInput is undefined * pass the untitledTextInput in test
This commit is contained in:
@@ -84,7 +84,7 @@ suite('Notebook Input', function (): void {
|
||||
// Input title
|
||||
assert.strictEqual(untitledNotebookInput.getTitle(), testTitle);
|
||||
|
||||
let noTitleInput = instantiationService.createInstance(UntitledNotebookInput, undefined, untitledUri, undefined);
|
||||
let noTitleInput = instantiationService.createInstance(UntitledNotebookInput, undefined, untitledUri, untitledTextInput);
|
||||
assert.strictEqual(noTitleInput.getTitle(), basenameOrAuthority(untitledUri));
|
||||
|
||||
// Text Input
|
||||
|
||||
Reference in New Issue
Block a user