mattn / efm-langserver

General purpose Language Server
MIT License
1.32k stars 59 forks source link

New --line-ranges optin for black #270

Closed kuator closed 8 months ago

kuator commented 8 months ago

Black added an option for range formatting: https://github.com/psf/black/pull/4020 The problem is it has one option to specify both rowStart and rowEnd. I tried something like black --no-color -q ${--line-ranges=rowStart-rowEnd} -, but it doesn't work and instead formats the entire file. And yes, I set formatCanRange to true

kuator commented 8 months ago

Nevermind, here's the solution: https://github.com/mattn/efm-langserver/issues/251