Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/microsoft-authentication/src/UriEventHandler.ts
3314 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import * as vscode from 'vscode';
7
8
export class UriEventHandler extends vscode.EventEmitter<vscode.Uri> implements vscode.UriHandler {
9
private _disposable = vscode.window.registerUriHandler(this);
10
11
handleUri(uri: vscode.Uri) {
12
this.fire(uri);
13
}
14
15
override dispose(): void {
16
super.dispose();
17
this._disposable.dispose();
18
}
19
}
20
21