Skip to content

Hovering over a type shows the entire declaration #1301

@leecannon

Description

@leecannon

Hovering over a type shows the entire declaration with the doc comment at the bottom of the tooltip.

A declaration could be thousands or tens of thousands of lines long, we should not reply with the whole thing.

/// Comment
const S = struct {
    f: u32,

    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
    fn a() void {}
};

pub fn main() !void {
    var s: S = undefined;
    _ = s;
}

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions