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

Update document formatter to use dynamic registration #241

Closed
adalinesimonian opened this issue Sep 29, 2021 · 2 comments · Fixed by #251
Closed

Update document formatter to use dynamic registration #241

adalinesimonian opened this issue Sep 29, 2021 · 2 comments · Fixed by #251
Assignees
Labels
type: refactor an improvement to the code structure

Comments

@adalinesimonian
Copy link
Member

adalinesimonian commented Sep 29, 2021

See #200 (comment), API docs

Related: #110

Using dynamic registration would decouple the language server's formatting support from the extension.

@adalinesimonian adalinesimonian added type: refactor an improvement to the code structure status: ready to implement is ready to be worked on by someone labels Sep 29, 2021
@rchl
Copy link
Contributor

rchl commented Sep 29, 2021

adalinesimonian added a commit that referenced this issue Oct 4, 2021
Fixes #250, Closes #241

Replaces extension's formatter registration implementation with server-
side dynamic or static registration, depending on client capabilities.
@adalinesimonian adalinesimonian self-assigned this Oct 4, 2021
@adalinesimonian adalinesimonian added status: wip is being worked on by someone and removed status: ready to implement is ready to be worked on by someone labels Oct 4, 2021
@adalinesimonian
Copy link
Member Author

adalinesimonian commented Oct 4, 2021

In #250, a bug was identified wherein a duplicate document formatter would be registered. Since I had to touch the formatting code anyway to prepare a fix, I implemented dynamic registration in #251.

adalinesimonian added a commit that referenced this issue Oct 4, 2021
Fixes #250, Closes #241

Replaces extension's formatter registration implementation with server-
side dynamic or static registration, depending on client capabilities.
@adalinesimonian adalinesimonian removed the status: wip is being worked on by someone label Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor an improvement to the code structure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants