OmniSharp / omnisharp-vim

Vim omnicompletion (intellisense) and more for C#
http://www.omnisharp.net
MIT License
1.72k stars 168 forks source link

Allow calling /updatebuffer with an empty buffer content #771

Closed Melandel closed 2 years ago

Melandel commented 2 years ago

I'm using custom script in order to rename/move a file, using dirvish.

Whenever I do that, OmniSharp has to be notified that the former buffer is obsolete and that it has to stop trying to use it.

One way of doing that is to send the information that the former buffer is empty, before the renaming/moving operation.

Omnisharp doesn't offer yet a way through its public interface to configure the body.Arguments.Buffer value.

I don't see a case where anyone would manually send a custom Buffer argument apart from an empty one, hence the implementation I'm suggesting using a EmptyBuffer value.