mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
move editor events over to group service
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user