mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
expose EventEmitter in our API, fixes #2359
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
|
||||
import {Emitter} from 'vs/base/common/event';
|
||||
import {IBracketElectricCharacterContribution} from 'vs/editor/common/modes/supports';
|
||||
import {score} from 'vs/editor/common/modes/languageSelector';
|
||||
import {Remotable, IThreadService} from 'vs/platform/thread/common/thread';
|
||||
@@ -71,6 +72,7 @@ export class ExtHostAPIImplementation {
|
||||
Range: typeof vscode.Range;
|
||||
Selection: typeof vscode.Selection;
|
||||
CancellationTokenSource: typeof vscode.CancellationTokenSource;
|
||||
EventEmitter: typeof vscode.EventEmitter;
|
||||
Hover: typeof vscode.Hover;
|
||||
DocumentHighlightKind: typeof vscode.DocumentHighlightKind;
|
||||
DocumentHighlight: typeof vscode.DocumentHighlight;
|
||||
@@ -106,7 +108,8 @@ export class ExtHostAPIImplementation {
|
||||
this.Uri = URI;
|
||||
this.Location = extHostTypes.Location;
|
||||
this.Diagnostic = <any> extHostTypes.Diagnostic;
|
||||
this.DiagnosticSeverity = <any> extHostTypes.DiagnosticSeverity;
|
||||
this.DiagnosticSeverity = <any>extHostTypes.DiagnosticSeverity;
|
||||
this.EventEmitter = Emitter;
|
||||
this.Disposable = extHostTypes.Disposable;
|
||||
this.TextEdit = extHostTypes.TextEdit;
|
||||
this.WorkspaceEdit = extHostTypes.WorkspaceEdit;
|
||||
|
||||
Reference in New Issue
Block a user