OmniSharp / omnisharp-server

HTTP wrapper around NRefactory allowing C# editor plugins to be written in any language.
http://www.omnisharp.net
MIT License
380 stars 97 forks source link

Add support for non-control-space completion #196

Closed mispencer closed 9 years ago

mispencer commented 9 years ago

Add support for the control-space parameter in NRefactory completion.

nosami commented 9 years ago

What difference does this make to the results? Any reason why it shouldn't always be true?

mispencer commented 9 years ago

The difference to the completion is complicated, but in general, it means a shorter list of completions, obtained faster.

For example, completing at the end of following

    var test = 

will provide a list of classes and namespaces in control-space mode, but won't provide any completions in non-control-space mode.

I use Omnisharp in YCM, and Omnisharp providing no completions will cause YCM to fallback to the identifier completion provider, which provides a smaller, more relevant list of completions than the class completions that control-space mode would provide.

(It's also a little faster, esp if the class list isn't yet cached in Nrefactory)

nosami commented 9 years ago

OK. Thanks.

p.s. Do you know about this? https://github.com/OmniSharp/omnisharp-roslyn