mirror of
https://github.com/microsoft/vscode.git
synced 2026-06-06 15:45:54 +01:00
Use Disposable.None
This commit is contained in:
@@ -17,8 +17,7 @@ export interface Event<T> {
|
||||
}
|
||||
|
||||
export namespace Event {
|
||||
const _disposable = { dispose() { } };
|
||||
export const None: Event<any> = function () { return _disposable; };
|
||||
export const None: Event<any> = () => Disposable.None;
|
||||
|
||||
/**
|
||||
* Given an event, returns another event which only fires once.
|
||||
|
||||
Reference in New Issue
Block a user