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

Add automatic .editorconfig support (2) #204

Merged
merged 5 commits into from
Jan 11, 2025
Merged

Conversation

razzmatazz
Copy link
Owner

Separate branch from dmitry's #200

@mxvoloshin
Copy link

hi, are there any plans to complete this PR?

@razzmatazz
Copy link
Owner Author

razzmatazz commented Jan 4, 2025

@mxvoloshin I was looking at the specs for Document Formatting Request (https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_formatting) and I am not sure that this approach is correct.

In particular, the client is supposed supposed to supply tabSize, insertSpaces properties to the server instead of reading those from .editorconfig. Let me investigate what it is that the other LSP servers do about this..

@razzmatazz
Copy link
Owner Author

At the moment I am leaning towards making it configurable, with the default of that where editorconfig will take precedance over FormattingOptions passed in from LSP.

DmitryHudrich and others added 3 commits January 11, 2025 15:56
Now the document is formatted according to the rules of the .editorconfig file, if such a file is present in the solution.
@razzmatazz razzmatazz force-pushed the editorconfig-support branch from 395fb9d to a039851 Compare January 11, 2025 19:58
@razzmatazz razzmatazz merged commit 40be7dd into main Jan 11, 2025
2 checks passed
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.

3 participants