mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
fix #91672
This commit is contained in:
parent
24307c0e1b
commit
15bdd26e46
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue