sussudio
Version:
An unofficial VS Code Internal API
27 lines (26 loc) • 1.13 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Disposable } from "../../../base/common/lifecycle.mjs";
import { IOpenerService } from "../common/opener.mjs";
import "../../../css!./link.mjs";
export interface ILinkDescriptor {
readonly label: string | HTMLElement;
readonly href: string;
readonly title?: string;
readonly tabIndex?: number;
}
export interface ILinkOptions {
readonly opener?: (href: string) => void;
readonly textLinkForeground?: string;
}
export declare class Link extends Disposable {
private _link;
private el;
private _enabled;
get enabled(): boolean;
set enabled(enabled: boolean);
set link(link: ILinkDescriptor);
constructor(container: HTMLElement, _link: ILinkDescriptor, options: ILinkOptions | undefined, openerService: IOpenerService);
}