Closed TheFirstAvenger closed 12 months ago
Interesting idea. This would require evaluating Mix.Tasks.Format.formatter_for_file
for each file but we can add a custom LSP command doing that. Do you know which vscode API can override edtior.rulers
?
Hmmm... upon further digging, it looks like there is an open PR for VSCode to support this.
Given that the PR is > 2y old and the issue https://github.com/microsoft/vscode/issues/111251 is > 3y old I'm not optimistic this is going to be supported soon
Yeah that makes sense. I will keep an eye on those PRs and if they happen to merge I will revisit this.
Is it possible to read the
.formatter.exs
line_length
property and use that to override theedtior.rulers
value in VSCode for that project, making the vertical line length indicator always accurate to the current project? If it is not present in that file, then the formatter default of98
should be applied.