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

Open
sfilata opened this issue Dec 27, 2022 · 2 comments
Open

Allow TreeItems have bold, underline or italics style #170063

sfilata opened this issue Dec 27, 2022 · 2 comments
Assignees
Labels
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
@VSCodeTriageBot
Copy link
Collaborator

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!

@VSCodeTriageBot
Copy link
Collaborator

🙂 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality tree-views Extension tree view issues
Projects
None yet
Development

No branches or pull requests

3 participants