richterger / Perl-LanguageServer

Language Server for Perl
Other
224 stars 53 forks source link

Suggestion: introduce perltidy for code formatting of this repository #59

Closed utgwkk closed 3 years ago

utgwkk commented 3 years ago

Code formatting would make code of this repository more readable and easy to contribute.

It does not mean that I suggest to combine this language server with perltidy for implementing document formatting (but it would be useful too).

utgwkk commented 3 years ago

What I want to suggest is to format the language server's code (under lib/ directory) with perltidy, not to add a new feature of integrating perltidy with language server.

I know there are already VSCode extension using perltidy in the marketplace (such as Kaktus.perltidy-more). So I think integrating this language server with perltidy is not necessarily needed at first (and your premise on the architecture is not wrong!)

richterger commented 3 years ago

Sorry for using a different codeing style than you do. As soon as perltidy would be able to support my formatting style, I am happy to use it. As long as it forces me to write my code in a way that is, from my point of view, much harder to read, I will not do.