Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow TreeItems have bold, underline or italics style #170063

Closed
sfilata opened this issue Dec 27, 2022 · 4 comments
Closed

Allow TreeItems have bold, underline or italics style #170063

sfilata opened this issue Dec 27, 2022 · 4 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality tree-views Extension tree view issues
Milestone

Comments

@sfilata
Copy link

sfilata commented Dec 27, 2022

Hi, I used the TreeItems to show a Treeview to show the resource in my project. I found there is only the highlight style in the TreeItemLabel, it will be very nice to add more style like the bold, underline or italics.

/**
 * Label describing the {@link TreeItem Tree item}
 */
export interface TreeItemLabel {

    /**
     * A human-readable string describing the {@link TreeItem Tree item}.
     */
    label: string;

    /**
     * Ranges in the label to highlight. A range is defined as a tuple of two number where the
     * first is the inclusive start index and the second the exclusive end index
     */
    highlights?: [number, number][];

    /**
     * Ranges in the label to the specfic style. A range is defined as a tuple of two number where the
     * first is the inclusive start index and the second the exclusive end index
     */
    bold?: [number, number][];
    underline?: [number, number][];
    italics?: [number, number][];
}
@alexr00 alexr00 added feature-request Request for new features or functionality tree-views Extension tree view issues labels Dec 27, 2022
@alexr00 alexr00 added this to the Backlog Candidates milestone Dec 27, 2022
@vscodenpa
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa
Copy link

🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa vscodenpa modified the milestones: Backlog Candidates, Backlog Jan 6, 2023
@adrianstephens
Copy link
Contributor

not sure if it's appropriate to add this here, but I could we have a way to specify a font in here too?

@alexr00
Copy link
Member

alexr00 commented Dec 12, 2024

Marking as a duplicate of #115365, as that's the one with more upvotes.

@alexr00 alexr00 closed this as completed Dec 12, 2024
@alexr00 alexr00 added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 12, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality tree-views Extension tree view issues
Projects
None yet
Development

No branches or pull requests

4 participants