Skip to content

provide completions for creating std_options #1688

@xdBronch

Description

@xdBronch

im not sure if this is easily done without cluttering general completions but it would be great if for example this

const std = @import("std");

pub const std_options = struct {
    pub const enable_se<cursor>
};

pub fn main() !void {}

gave a completion for enable_segfault_handler (maybe a type hint in the completion too? not sure how thatd work)
can zls detect if its in the root file? thats the only time std_options are valid

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