We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3555386 commit f357d44Copy full SHA for f357d44
1 file changed
src/vs/workbench/common/editor/editorGroup.ts
@@ -383,7 +383,7 @@ export class EditorGroup extends Disposable {
383
384
moveEditor(candidate: EditorInput, toIndex: number): EditorInput | undefined {
385
const index = this.indexOf(candidate);
386
- if (index < 0) {
+ if (index < 0 || toIndex === index) {
387
return;
388
}
389
@@ -481,6 +481,10 @@ export class EditorGroup extends Disposable {
481
isPinned(editor: EditorInput): boolean;
482
isPinned(index: number): boolean;
483
isPinned(arg1: EditorInput | number): boolean {
484
+ if (!this.preview) {
485
+ return true; // no preview editor
486
+ }
487
+
488
let editor: EditorInput;
489
let index: number;
490
if (typeof arg1 === 'number') {
0 commit comments