send out active viewlet change event

fixes #8060
This commit is contained in:
Joao Moreno
2016-07-27 16:28:26 +02:00
parent 20c76bbd21
commit 8ba1d2eed9
4 changed files with 31 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
'use strict';
import {TPromise} from 'vs/base/common/winjs.base';
import Event from 'vs/base/common/event';
import {IViewlet} from 'vs/workbench/common/viewlet';
import {createDecorator, ServiceIdentifier} from 'vs/platform/instantiation/common/instantiation';
@@ -13,6 +14,8 @@ export const IViewletService = createDecorator<IViewletService>('viewletService'
export interface IViewletService {
_serviceBrand : ServiceIdentifier<any>;
onDidActiveViewletChange: Event<IViewlet>;
/**
* Opens a viewlet with the given identifier and pass keyboard focus to it if specified.
*/