This commit is contained in:
Jared Ramirez 2025-12-22 11:50:12 -05:00 committed by Richard Feldman
parent fa19fabd88
commit 788d6579bd
No known key found for this signature in database
3 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View file

@ -143,3 +143,5 @@ src/snapshots/**/*.html
# Local claude-code settings
.claude/settings.local.json
*.bak

View file

@ -1751,7 +1751,7 @@ fn findHoverInfoAtPosition(data: CompilerStageData, byte_offset: u32, identifier
defer type_writer.deinit();
const def_var = @as(types.Var, @enumFromInt(@intFromEnum(def_idx)));
try type_writer.write(def_var);
try type_writer.write(def_var, .wrap);
const type_str_from_writer = type_writer.get();
const owned_type_str = try local_allocator.dupe(u8, type_str_from_writer);

View file

@ -188,7 +188,7 @@ fn hasSeenVar(self: *const TypeWriter, var_: Var) bool {
return false;
}
pub const Format = enum { one_line, wrap };
const Format = enum { one_line, wrap };
/// Writes the current var into the the writers buffer and returns a bytes slice
pub fn writeGet(self: *TypeWriter, var_: Var, format: Format) std.mem.Allocator.Error![]const u8 {