Skip to content

Commit

Permalink
Merge pull request #460 from Hinidu/master
Browse files Browse the repository at this point in the history
Add mono to command OmniSharpServer for non-windows systems
  • Loading branch information
Valloric committed Jul 18, 2013
2 parents 995bdf7 + e6183d6 commit 6f328ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/ycm/completers/cs/cs_completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import vim
import os
from sys import platform
import glob
from ycm.completers.threaded_completer import ThreadedCompleter
from ycm import vimsupport
Expand Down Expand Up @@ -121,6 +122,9 @@ def _StartServer( self ):
vimsupport.PostVimMessage( SERVER_NOT_FOUND_MSG.format( omnisharp ) )
return

if not platform.startswith( 'win' ):
omnisharp = "mono " + omnisharp

solutionfile = os.path.join( folder, solutionfile )
# command has to be provided as one string for some reason
command = [ omnisharp + ' -p ' + str( self._omnisharp_port ) + ' -s ' +
Expand Down

0 comments on commit 6f328ea

Please sign in to comment.