Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usability: Improve Code Actions #446

Closed
scohen opened this issue Oct 24, 2023 · 0 comments · Fixed by #453
Closed

Usability: Improve Code Actions #446

scohen opened this issue Oct 24, 2023 · 0 comments · Fixed by #453

Comments

@scohen
Copy link
Collaborator

scohen commented Oct 24, 2023

I think code actions' usability can be improved a lot. Right now, there's a router in server that delegates to calls via RemoteControl.Api. I think we can push the router into remote_control, pass in the diagnostic information and have the router emit code actions for the diagnostic. This means people would only need to do the work inside remote_control.

scohen added a commit that referenced this issue Oct 26, 2023
After observing a PR for code actions, it seemed there was much to
much busywork in creating them. This PR seeks to remedy that. Now, in
order to create a code action, you just need to create a new handler
in the `remote_control` app.

The server provider now encompasses all code actions, and handles
marshalling from and to the protocol. AST transformations now reside
in remote_control, which is where they belong.

Fixes #446
scohen added a commit that referenced this issue Oct 31, 2023
* Code Actions refactor

After observing a PR for code actions, it seemed there was much to
much busywork in creating them. This PR seeks to remedy that. Now, in
order to create a code action, you just need to create a new handler
in the `remote_control` app.

The server provider now encompasses all code actions, and handles
marshalling from and to the protocol. AST transformations now reside
in remote_control, which is where they belong.

Fixes #446
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant