diff options
author | pommicket <pommicket@gmail.com> | 2022-12-30 21:18:10 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-30 21:18:10 -0500 |
commit | a997d4106a397c785473bec5862c91bdf49f06ee (patch) | |
tree | ddc2ce89c1537d91a7c78116e72945e3653fd748 /lsp-write.c | |
parent | 9d9032fcd0f92d4c1838218f43e5b14acf2a99fc (diff) |
workspaceEdit capabilities
Diffstat (limited to 'lsp-write.c')
-rw-r--r-- | lsp-write.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lsp-write.c b/lsp-write.c index 41f6d81..fb65c2d 100644 --- a/lsp-write.c +++ b/lsp-write.c @@ -437,7 +437,14 @@ static void write_request(LSP *lsp, LSPRequest *request) { write_obj_end(o); write_key_obj_start(o, "workspace"); write_key_bool(o, "workspaceFolders", true); - + write_key_obj_start(o, "workspaceEdit"); + write_key_bool(o, "documentChanges", true); + write_key_arr_start(o, "resourceOperations"); + write_arr_elem_string(o, "create"); + write_arr_elem_string(o, "rename"); + write_arr_elem_string(o, "delete"); + write_arr_end(o); + write_obj_end(o); write_key_obj_start(o, "symbol"); write_symbol_kind_support(o); write_symbol_tag_support(o); |