Ihnat Aŭtuška

Results 14 comments of Ihnat Aŭtuška

@WeetHet I'm new to the project, can you guide me where I can find such functionality in the codebase to reuse? All I can find is a `editor::Format` which does...

@WeetHet Maybe it would be better to rename the action into `Reformat File` and also add it to context menu in a file picker on the left panel? As a...

@WeetHet Yeah, I've prepared the PoC, but somehow can't test it on Rust code. Simply do not get to the right branch with range format. Rust analyzer supports range format...

@WeetHet OK. This PR is complete then. I'll make another PR for selection formatting.

Have made a PR as well. - https://github.com/zed-industries/zed/pull/16823

Discussed with @ConradIrwin here - https://github.com/zed-industries/zed/pull/16823

It's also possible to make a range formatting with Prettier if needed.

Wow, rebase made this messy. How can I fix that?

Thanks, it helped. :)

@mrnugget Yes, rust-analyzer supports range format only on nightly. I used C++ LSP for testing.