vitallium / zed-stimulus

Stimulus LSP support for Zed
https://zed.dev
MIT License
12 stars 0 forks source link

Code action for creating a missing controller does not work #3

Open vitallium opened 2 days ago

vitallium commented 2 days ago

Code action for creating a missing controller does not work:

{"jsonrpc":"2.0","id":4,"method":"workspace/applyEdit","params":{"edit":{"documentChanges":[{"kind":"create","uri":"/Users/vslobodin/Development/festivatica/app/javascript/controllers/modal_controller.js"}]}}}
// Receive:
{"jsonrpc":"2.0","id":15,"result":null}
// Send:
{"jsonrpc":"2.0","id":4,"error":{"message":"data did not match any variant of untagged enum DocumentChanges"},"result":null}

The error messages indicates that this could be an upstream issue.

vitallium commented 1 day ago

https://github.com/zed-industries/zed/issues/18218

vitallium commented 21 hours ago

Actually, this could be a problem with the Stimulus LSP itself - https://github.com/marcoroth/stimulus-lsp/pull/397