mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fix not numbered inconsistency (#14269)
* fix not numbered field * fix for adding extra field and removing it from sections * use const for variable * use spread operator to create new object * address pr comments * change function name and simplify * Add comment and put the initializeContents in the finally block
This commit is contained in:
@@ -343,7 +343,9 @@ export class BookTocManager implements IBookTocManager {
|
||||
|
||||
if (this._sourceBook) {
|
||||
const sectionTOC = this._sourceBook.bookItems[0].findChildSection(notebook.uri);
|
||||
this.newSection = sectionTOC;
|
||||
if (sectionTOC) {
|
||||
this.newSection = sectionTOC;
|
||||
}
|
||||
}
|
||||
fileName = fileName === undefined ? notebookPath.name : path.parse(fileName).name;
|
||||
this.newSection.file = path.sep.concat(fileName).replace(/\\/g, '/');
|
||||
|
||||
Reference in New Issue
Block a user