summaryrefslogtreecommitdiff
path: root/lsp-parse.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-23 21:25:48 -0500
committerpommicket <pommicket@gmail.com>2022-12-23 21:25:48 -0500
commitaabe543ee93796330158fa7fd247fb1ebeb8e3bb (patch)
tree0917a9b55082b1dc6974e797cc942a8792c697d0 /lsp-parse.c
parenteb7519e92f768224803ab66985541c99bddc2bf0 (diff)
remove old code
Diffstat (limited to 'lsp-parse.c')
-rw-r--r--lsp-parse.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/lsp-parse.c b/lsp-parse.c
index 0c75acf..86a223d 100644
--- a/lsp-parse.c
+++ b/lsp-parse.c
@@ -327,20 +327,8 @@ static void process_message(LSP *lsp, JSON *json) {
JSONValue error = json_get(json, "error.message");
if (error.type == JSON_STRING) {
char err[256] = {0};
- json_string_get(json, error.val.string, err, sizeof err);;
-
- if (streq(err, "waiting for cargo metadata or cargo check")) {
- // fine. be that way. i'll resend the goddamn request.
- // i'll keep bombarding you with requests.
- // maybe next time you should abide by the standard and only send an initialize response when youre actually ready to handle my requests. fuck you.
- if (response_to.type) {
- lsp_send_request(lsp, &response_to);
- // don't free
- memset(&response_to, 0, sizeof response_to);
- }
- } else {
- lsp_set_error(lsp, "%s", err);
- }
+ json_string_get(json, error.val.string, err, sizeof err);
+ printf("%s\n",err);
goto ret;
}