This commit is contained in:
Johannes Rieken 2020-02-27 11:41:09 +01:00
parent 24307c0e1b
commit 15bdd26e46

View file

@ -111,6 +111,7 @@ class BulkEditPreviewContribution {
private async _previewEdit(edit: WorkspaceEdit) {
this._ctxEnabled.set(true);
const uxState = this._activeSession?.uxState ?? new UXState(this._panelService, this._editorGroupsService);
const view = await getBulkEditPane(this._viewsService);
if (!view) {
this._ctxEnabled.set(false);
@ -136,9 +137,9 @@ class BulkEditPreviewContribution {
let session: PreviewSession;
if (this._activeSession) {
this._activeSession.cts.dispose(true);
session = new PreviewSession(this._activeSession.uxState);
session = new PreviewSession(uxState);
} else {
session = new PreviewSession(new UXState(this._panelService, this._editorGroupsService));
session = new PreviewSession(uxState);
}
this._activeSession = session;