sussudio
Version:
An unofficial VS Code Internal API
19 lines (18 loc) • 735 B
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { reset } from "../../dom.mjs";
import { renderLabelWithIcons } from "./iconLabels.mjs";
export class SimpleIconLabel {
_container;
constructor(_container) {
this._container = _container;
}
set text(text) {
reset(this._container, ...renderLabelWithIcons(text ?? ''));
}
set title(title) {
this._container.title = title;
}
}