mirror of
				https://github.com/MaskRay/ccls.git
				synced 2025-10-31 04:32:33 +00:00 
			
		
		
		
	For textDocument/hover, do not error on empty results
This commit is contained in:
		
							parent
							
								
									cf4603c6fa
								
							
						
					
					
						commit
						18f602c6e8
					
				| @ -82,16 +82,8 @@ struct TextDocumentHoverHandler : BaseMessageHandler<Ipc_TextDocumentHover> { | |||||||
|       break; |       break; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (out.result.contents.value.empty()) { |  | ||||||
|       Out_Error out; |  | ||||||
|       out.id = request->id; |  | ||||||
|       out.error.code = lsErrorCodes::InternalError; |  | ||||||
|       IpcManager::WriteStdout(IpcId::Unknown, out); |  | ||||||
|       return; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     IpcManager::WriteStdout(IpcId::TextDocumentHover, out); |     IpcManager::WriteStdout(IpcId::TextDocumentHover, out); | ||||||
|   } |   } | ||||||
| }; | }; | ||||||
| REGISTER_MESSAGE_HANDLER(TextDocumentHoverHandler); | REGISTER_MESSAGE_HANDLER(TextDocumentHoverHandler); | ||||||
| }  // namespace
 | }  // namespace
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user