Files
vscode/extensions/microsoft-authentication/src/UriEventHandler.ts
Tyler James Leonhardt 70d27743ac Ability to use MSAL in the Desktop (#225272)
* Ability to use MSAL in the Desktop

* add comment about MSAL workaround
2024-08-09 12:18:34 -07:00

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();
}
}