FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add formatter options support for yapf by masad-frost · Pull Request #946 · palantir/python-language-server · GitHub

Add formatter options support for yapf - #946

Closed
masad-frost wants to merge 6 commits into
palantir:developfrom
masad-frost:fm-lsp-format-options
Closed

Add formatter options support for yapf#946
masad-frost wants to merge 6 commits into
palantir:developfrom
masad-frost:fm-lsp-format-options

Conversation

masad-frost commented Dec 8, 2021
edited
Loading

Copy link
Copy Markdown

resolves #328

This PR adds support for LSP formatting options https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#formattingOptions

It adds explicit support for tabSize and insertSpaces, the rest of the options are not configurable in yapf. I did however add support for arbitrary configurations as specified in [key: string]: boolean | integer | string;.

I think this PR might break plugins as the API now passes options to formatter hooks

Copy link
Copy Markdown
Author

closing in favor of python-lsp/python-lsp-server#134 since this repo is not maintained

masad-frost closed this Dec 9, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code formatting configuration

1 participant


Back | FazBrowse Home | New Git URL