We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.12.0-dev.2543+9eda6ccef
0.12.0-dev.371+47373c1
vscode
(try somefunc()) <- do not understand type, so hover not working (i suppose) working hover:
not working hover:
expect to work hover as on first screenshot
const std = @import("std"); const SomeTypeB = struct { b: u8 = 0, pub fn get_b(self: SomeTypeB) u8 { return self.b; } }; const SomeType = struct { a: SomeTypeB = undefined, pub fn get_a(self: SomeType) !SomeTypeB { return self.a; } }; pub fn main() !void { const a = SomeType{ .a = SomeTypeB{ .b = 1 }, }; const b = try a.get_a(); // b get_b func hover is working const b_val = b.get_b(); // get_b func hover is not working, but code is right const b_val_2 = (try a.get_a()).get_b(); try std.testing.expect(b_val == b_val_2); }
The text was updated successfully, but these errors were encountered:
There is a completion test that is the same as this issue:
zls/tests/lsp_features/completion.zig
Lines 1430 to 1438 in 0eb76c5
Sorry, something went wrong.
No branches or pull requests
Zig Version
0.12.0-dev.2543+9eda6ccef
Zig Language Server Version
0.12.0-dev.371+47373c1
Client / Code Editor / Extensions
vscode
Steps to Reproduce and Observed Behavior
(try somefunc()) <- do not understand type, so hover not working (i suppose)
working hover:
not working hover:
Expected Behavior
expect to work hover as on first screenshot
Relevant log output
The text was updated successfully, but these errors were encountered: