Skip to content

Commit 194a8dd

Browse files
committed
using the uri of the multi file editor instead of using the schema for individual files inside the multi diff editor
1 parent 5c2f9eb commit 194a8dd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.contribution.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { localize, localize2 } from 'vs/nls';
1414
import { ViewPaneContainer } from 'vs/workbench/browser/parts/views/viewPaneContainer';
1515
import { RawContextKey, IContextKeyService, IContextKey, ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
1616
import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService';
17-
import { BulkEditPreviewProvider } from 'vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPreview';
1817
import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry';
1918
import { KeyMod, KeyCode } from 'vs/base/common/keyCodes';
2019
import { WorkbenchListFocusContextKey } from 'vs/platform/list/browser/listService';
@@ -67,7 +66,7 @@ class UXState {
6766
for (const input of group.editors) {
6867

6968
const resource = EditorResourceAccessor.getCanonicalUri(input, { supportSideBySide: SideBySideEditor.PRIMARY });
70-
if (resource?.scheme === BulkEditPreviewProvider.Schema) {
69+
if (resource?.scheme === BulkEditPane.Schema) {
7170
previewEditors.push(input);
7271
}
7372
}

src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPane.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const enum State {
4848
export class BulkEditPane extends ViewPane {
4949

5050
static readonly ID = 'refactorPreview';
51+
static readonly Schema = 'vscode-bulkeditpreview-multieditor';
5152

5253
static readonly ctxHasCategories = new RawContextKey('refactorPreview.hasCategories', false);
5354
static readonly ctxGroupByFile = new RawContextKey('refactorPreview.groupByFile', true);
@@ -344,7 +345,7 @@ export class BulkEditPane extends ViewPane {
344345
}
345346
}
346347
};
347-
const multiDiffSource = URI.from({ scheme: 'refactor-preview' });
348+
const multiDiffSource = URI.from({ scheme: BulkEditPane.Schema });
348349
const label = 'Refactor Preview';
349350
this._editorService.openEditor({
350351
multiDiffSource,

src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPreview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export class BulkFileOperations {
351351

352352
export class BulkEditPreviewProvider implements ITextModelContentProvider {
353353

354-
static readonly Schema = 'vscode-bulkeditpreview';
354+
private static readonly Schema = 'vscode-bulkeditpreview-editor';
355355

356356
static emptyPreview = URI.from({ scheme: BulkEditPreviewProvider.Schema, fragment: 'empty' });
357357

0 commit comments

Comments
 (0)