void/extensions/microsoft-authentication/src/UriEventHandler.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
686 B
TypeScript
Raw Permalink Normal View History

2024-09-11 02:37:36 +00:00
/*---------------------------------------------------------------------------------------------
* 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();
}
}