Skip to content

Commit

Permalink
fix enable_build_on_save config check
Browse files Browse the repository at this point in the history
fixes #2085
  • Loading branch information
Techatrix committed Nov 13, 2024
1 parent 5da482b commit b2557fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,7 @@ fn selectionRangeHandler(server: *Server, arena: std.mem.Allocator, request: typ

fn scheduleBuildOnSave(server: *Server) void {
if (!std.process.can_spawn) return;
if (server.config.enable_build_on_save != false) return;
if (server.config.enable_build_on_save == false) return;
if (!server.client_capabilities.supports_publish_diagnostics) return;

for (server.workspaces.items) |*workspace| {
Expand Down

0 comments on commit b2557fa

Please sign in to comment.