OmniSharp / omnisharp-vim

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

fix timeout for autocompletion on Windows #756

Closed Melandel closed 2 years ago

Melandel commented 2 years ago

On Windows, reltime(starttime)[0] seems to always be 0, while reltime(starttime)[1] seems to be a number of milliseconds.

From vim's doc about reltime:

reltime([{start} [, {end}]]) reltime() Return an item that represents a time value. The item is a list with items that depend on the system. In Vim 9 script list can be used. The item can be passed to |reltimestr()| to convert it to a string or |reltimefloat()| to convert to a Float.

If the output of reltime is OS-related, then I think the use of reltimefloat is justified so the behaviour is the same no matter the OS.

nickspoons commented 2 years ago

Thanks @Melandel