Small refactoring
Use the dedicated function to check if we're running on Windows instead of checking the platform directly.
This commit is contained in:
parent
d4829f1ef9
commit
9b8781322e
@ -154,7 +154,7 @@ 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 platform.startswith( 'win' ):
|
if utils.OnWindows():
|
||||||
command.insert(0, 'mono')
|
command.insert(0, 'mono')
|
||||||
|
|
||||||
filename_format = os.path.join( utils.PathToTempDir(),
|
filename_format = os.path.join( utils.PathToTempDir(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user