Fix ICoreMouseService injecting
This commit is contained in:
@@ -54,6 +54,7 @@ export class MockBufferService implements IBufferService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class MockCoreMouseService implements ICoreMouseService {
|
export class MockCoreMouseService implements ICoreMouseService {
|
||||||
|
public serviceBrand: any;
|
||||||
public areMouseEventsActive: boolean = false;
|
public areMouseEventsActive: boolean = false;
|
||||||
public activeEncoding: string = '';
|
public activeEncoding: string = '';
|
||||||
public activeProtocol: string = '';
|
public activeProtocol: string = '';
|
||||||
|
|||||||
@@ -167,6 +167,8 @@ const DEFAULT_ENCODINGS: { [key: string]: CoreMouseEncoding } = {
|
|||||||
* To send a mouse event call `triggerMouseEvent`.
|
* To send a mouse event call `triggerMouseEvent`.
|
||||||
*/
|
*/
|
||||||
export class CoreMouseService extends Disposable implements ICoreMouseService {
|
export class CoreMouseService extends Disposable implements ICoreMouseService {
|
||||||
|
public serviceBrand: any;
|
||||||
|
|
||||||
private _protocols: { [name: string]: ICoreMouseProtocol } = {};
|
private _protocols: { [name: string]: ICoreMouseProtocol } = {};
|
||||||
private _encodings: { [name: string]: CoreMouseEncoding } = {};
|
private _encodings: { [name: string]: CoreMouseEncoding } = {};
|
||||||
private _activeProtocol: string = '';
|
private _activeProtocol: string = '';
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ export interface IBufferService {
|
|||||||
|
|
||||||
export const ICoreMouseService = createDecorator<ICoreMouseService>('CoreMouseService');
|
export const ICoreMouseService = createDecorator<ICoreMouseService>('CoreMouseService');
|
||||||
export interface ICoreMouseService {
|
export interface ICoreMouseService {
|
||||||
|
serviceBrand: undefined;
|
||||||
|
|
||||||
activeProtocol: string;
|
activeProtocol: string;
|
||||||
activeEncoding: string;
|
activeEncoding: string;
|
||||||
areMouseEventsActive: boolean;
|
areMouseEventsActive: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user