Call OmniSharpServer correctly in Cygwin
Cygwin should not call OmniSharpServer with mono Update OmniSharpServer submodule for new client path mode parameter Pass client path mode to OmniSharpServer on run
This commit is contained in:
parent
999a1902eb
commit
81973caf05
@ -1 +1 @@
|
|||||||
Subproject commit 53ea4d7fb5190fa118ff36cdf1037644b4a2fc9f
|
Subproject commit c89ef98ed9182bbca40ce47f2e6ccd1cca91036d
|
@ -150,9 +150,12 @@ class CsharpCompleter( Completer ):
|
|||||||
command = ( omnisharp + ' -p ' + str( self._omnisharp_port ) + ' -s ' +
|
command = ( omnisharp + ' -p ' + str( self._omnisharp_port ) + ' -s ' +
|
||||||
path_to_solutionfile )
|
path_to_solutionfile )
|
||||||
|
|
||||||
if not utils.OnWindows():
|
if not utils.OnWindows() and not utils.OnCygwin():
|
||||||
command = 'mono ' + command
|
command = 'mono ' + command
|
||||||
|
|
||||||
|
if utils.OnCygwin():
|
||||||
|
command = command + ' --client-path-mode Cygwin'
|
||||||
|
|
||||||
filename_format = os.path.join( utils.PathToTempDir(),
|
filename_format = os.path.join( utils.PathToTempDir(),
|
||||||
'omnisharp_{port}_{sln}_{std}.log' )
|
'omnisharp_{port}_{sln}_{std}.log' )
|
||||||
|
|
||||||
|
@ -171,6 +171,10 @@ def OnWindows():
|
|||||||
return sys.platform == 'win32'
|
return sys.platform == 'win32'
|
||||||
|
|
||||||
|
|
||||||
|
def OnCygwin():
|
||||||
|
return sys.platform == 'cygwin'
|
||||||
|
|
||||||
|
|
||||||
# From here: http://stackoverflow.com/a/8536476/1672783
|
# From here: http://stackoverflow.com/a/8536476/1672783
|
||||||
def TerminateProcess( pid ):
|
def TerminateProcess( pid ):
|
||||||
if OnWindows():
|
if OnWindows():
|
||||||
|
Loading…
Reference in New Issue
Block a user