Skip to content

Commit

Permalink
Clear un-uploaded changes to Mongo & DocDB documents before opening (#…
Browse files Browse the repository at this point in the history
…1622)

* Use fireChangedEvent
  • Loading branch information
Will Lorey authored Jul 13, 2020
1 parent 1a9a300 commit 4dc900f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ export async function activateInternal(context: vscode.ExtensionContext, perfSta
node = await ext.tree.showTreeItemPicker<MongoDocumentTreeItem | DocDBDocumentTreeItem>([MongoDocumentTreeItem.contextValue, DocDBDocumentTreeItem.contextValue], actionContext);
}

// Clear un-uploaded local changes to the document before opening https://github.com/microsoft/vscode-cosmosdb/issues/1619
ext.fileSystem.fireChangedEvent(node);
await ext.fileSystem.showTextDocument(node);
// tslint:disable-next-line:align
}, doubleClickDebounceDelay);
Expand Down

0 comments on commit 4dc900f

Please sign in to comment.