Commit 944e4ecc authored by Günther Wagner's avatar Günther Wagner
Browse files

code review fixes

parent 0141c6bd
Pipeline #180266 failed with stage
in 60 minutes and 1 second
......@@ -744,7 +744,9 @@ ide_lsp_client_real_notification (IdeLspClient *self,
if (params != NULL)
{
if (g_str_equal (method, "textDocument/publishDiagnostics"))
ide_lsp_client_text_document_publish_diagnostics (self, params);
{
ide_lsp_client_text_document_publish_diagnostics (self, params);
}
else if (g_str_equal (method, "$/progress"))
{
const gchar *token = NULL;
......@@ -768,7 +770,7 @@ ide_lsp_client_real_notification (IdeLspClient *self,
context = ide_object_get_context (IDE_OBJECT (self));
notifications = ide_object_get_child_typed (IDE_OBJECT (context), IDE_TYPE_NOTIFICATIONS);
if (g_str_equal (kind, "begin"))
if (ide_str_equal0 (kind, "begin"))
{
notification = ide_notification_new ();
ide_notification_set_id (notification, token);
......@@ -785,7 +787,7 @@ ide_lsp_client_real_notification (IdeLspClient *self,
ide_notification_set_title (notification, message);
}
if (g_str_equal (kind, "end") && notification != NULL)
if (ide_str_equal0 (kind, "end") && notification != NULL)
ide_notification_withdraw_in_seconds (notification, 3);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment