mirror of
https://github.com/microsoft/vscode.git
synced 2026-03-01 06:06:04 +00:00
20 lines
686 B
TypeScript
20 lines
686 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import * as vscode from 'vscode';
|
|
|
|
export class UriEventHandler extends vscode.EventEmitter<vscode.Uri> implements vscode.UriHandler {
|
|
private _disposable = vscode.window.registerUriHandler(this);
|
|
|
|
handleUri(uri: vscode.Uri) {
|
|
this.fire(uri);
|
|
}
|
|
|
|
override dispose(): void {
|
|
super.dispose();
|
|
this._disposable.dispose();
|
|
}
|
|
}
|