fix: don't hang project_manager if language server exits early
This commit is contained in:
		
							parent
							
								
									939a70b249
								
							
						
					
					
						commit
						33dd4486eb
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -226,9 +226,10 @@ const Process = struct {
 | 
				
			||||||
        try self.frame_message_recv();
 | 
					        try self.frame_message_recv();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    fn handle_terminated(self: *Process, err: []const u8, code: u32) !void {
 | 
					    fn handle_terminated(self: *Process, err: []const u8, code: u32) tp.result {
 | 
				
			||||||
        self.write_log("### subprocess terminated {s} {d} ###\n", .{ err, code });
 | 
					        self.write_log("### subprocess terminated {s} {d} ###\n", .{ err, code });
 | 
				
			||||||
        try self.parent.send(.{ sp_tag, self.tag, "done" });
 | 
					        try self.parent.send(.{ sp_tag, self.tag, "done" });
 | 
				
			||||||
 | 
					        return tp.exit_normal();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    fn send_request(self: *Process, from: tp.pid_ref, method: []const u8, params_cb: []const u8) !void {
 | 
					    fn send_request(self: *Process, from: tp.pid_ref, method: []const u8, params_cb: []const u8) !void {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue