Fix builtin-based completions such as with Vectors
I wonder why vector definitions isn't exists in std ast. :confused:
They do! Vectors are classified builtins, I believe. Also, they don't have their own builtin anymore, and use @Type(.Vector) now, so we'll have to add support for that.
Just grep vector in lib/std/zig :smile:
Oh! You mean the vector type in meta? That should definitely have completion. I guess the only time it shouldn't is when using builtins as at the moment, ZLS doesn't complete the result of builtins.
Just checked, std.meta.Vector actually uses builtins to create vectors, and that's why they don't receive completions within ZLS! I'll rename this issue accordingly!
And good question on why Vector doesn't exist in std.ast! No builtins exist in std.ast, as they are instead seemingly handled by the non-self-hosted portions of the code generator.
arrays is also builtin, but it exist in std.ast.