mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
Fix editor index checks
This commit is contained in:
parent
32a2050665
commit
c2e3ba3aef
|
@ -244,27 +244,27 @@ export class MainThreadEditorTabs {
|
|||
return;
|
||||
}
|
||||
case GroupModelChangeKind.EDITOR_LABEL:
|
||||
if (event.editor && event.editorIndex) {
|
||||
if (event.editor !== undefined && event.editorIndex !== undefined) {
|
||||
this._onDidTabLabelChange(event.groupId, event.editor, event.editorIndex);
|
||||
break;
|
||||
}
|
||||
case GroupModelChangeKind.EDITOR_OPEN:
|
||||
if (event.editor && event.editorIndex) {
|
||||
if (event.editor !== undefined && event.editorIndex !== undefined) {
|
||||
this._onDidTabOpen(event.groupId, event.editor, event.editorIndex);
|
||||
break;
|
||||
}
|
||||
case GroupModelChangeKind.EDITOR_CLOSE:
|
||||
if (event.editorIndex) {
|
||||
if (event.editorIndex !== undefined) {
|
||||
this._onDidTabClose(event.groupId, event.editorIndex);
|
||||
break;
|
||||
}
|
||||
case GroupModelChangeKind.EDITOR_ACTIVE:
|
||||
if (event.editorIndex) {
|
||||
if (event.editorIndex !== undefined) {
|
||||
this._onDidTabActiveChange(event.groupId, event.editorIndex);
|
||||
break;
|
||||
}
|
||||
case GroupModelChangeKind.EDITOR_DIRTY:
|
||||
if (event.editorIndex && event.editor) {
|
||||
if (event.editorIndex !== undefined && event.editor !== undefined) {
|
||||
this._onDidTabDirty(event.groupId, event.editorIndex, event.editor);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue