Add mono to command for non-windows systems
This commit is contained in:
parent
995bdf706f
commit
642572130c
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
import vim
|
import vim
|
||||||
import os
|
import os
|
||||||
|
from sys import platform
|
||||||
import glob
|
import glob
|
||||||
from ycm.completers.threaded_completer import ThreadedCompleter
|
from ycm.completers.threaded_completer import ThreadedCompleter
|
||||||
from ycm import vimsupport
|
from ycm import vimsupport
|
||||||
@ -121,6 +122,9 @@ class CsharpCompleter( ThreadedCompleter ):
|
|||||||
vimsupport.PostVimMessage( SERVER_NOT_FOUND_MSG.format( omnisharp ) )
|
vimsupport.PostVimMessage( SERVER_NOT_FOUND_MSG.format( omnisharp ) )
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not platform.startswith('win'):
|
||||||
|
omnisharp = "mono " + omnisharp
|
||||||
|
|
||||||
solutionfile = os.path.join( folder, solutionfile )
|
solutionfile = os.path.join( folder, solutionfile )
|
||||||
# command has to be provided as one string for some reason
|
# command has to be provided as one string for some reason
|
||||||
command = [ omnisharp + ' -p ' + str( self._omnisharp_port ) + ' -s ' +
|
command = [ omnisharp + ' -p ' + str( self._omnisharp_port ) + ' -s ' +
|
||||||
|
Loading…
Reference in New Issue
Block a user