mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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:
@@ -225,11 +225,11 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider<BookTreeIte
|
||||
} finally {
|
||||
try {
|
||||
await targetBook.initializeContents();
|
||||
} finally {
|
||||
if (sourceBook && sourceBook.bookPath !== targetBook.bookPath) {
|
||||
// refresh source book model to pick up latest changes
|
||||
await sourceBook.initializeContents();
|
||||
}
|
||||
} finally {
|
||||
this._onDidChangeTreeData.fire(undefined);
|
||||
// even if it fails, we still need to watch the toc file again.
|
||||
if (sourceBook) {
|
||||
|
||||
Reference in New Issue
Block a user