move editor events over to group service

This commit is contained in:
Benjamin Pasero
2016-06-03 09:55:22 +02:00
parent f2987ae9fc
commit 26caa26382
22 changed files with 89 additions and 99 deletions

View File

@@ -16,6 +16,7 @@ import dom = require('vs/base/browser/dom');
import {IStorageService} from 'vs/platform/storage/common/storage';
import {IEventService} from 'vs/platform/event/common/event';
import {IWorkspaceContextService} from 'vs/platform/workspace/common/workspace';
import {IEditorGroupService} from 'vs/workbench/services/group/common/groupService';
import {ipcRenderer as ipc, shell, remote} from 'electron';
@@ -41,6 +42,7 @@ export class ElectronWindow {
@IEventService private eventService: IEventService,
@IStorageService private storageService: IStorageService,
@IWorkbenchEditorService private editorService: IWorkbenchEditorService,
@IEditorGroupService private editorGroupService: IEditorGroupService,
@IViewletService private viewletService: IViewletService
) {
this.win = win;
@@ -52,7 +54,7 @@ export class ElectronWindow {
// React to editor input changes (Mac only)
if (platform.platform === platform.Platform.Mac) {
this.editorService.onEditorsChanged(() => {
this.editorGroupService.onEditorsChanged(() => {
let fileInput = workbenchEditorCommon.asFileEditorInput(this.editorService.getActiveEditorInput(), true);
let representedFilename = '';
if (fileInput) {