From 485457af5d7dcc4e979706b929d7391c1f6dbc4b Mon Sep 17 00:00:00 2001 From: Chiel92 Date: Tue, 16 Jul 2013 16:12:40 +0200 Subject: [PATCH] Apparently tested an unsaved file -_- --- python/ycm/completers/cs/cs_completer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ycm/completers/cs/cs_completer.py b/python/ycm/completers/cs/cs_completer.py index a1c89fda..363718c1 100755 --- a/python/ycm/completers/cs/cs_completer.py +++ b/python/ycm/completers/cs/cs_completer.py @@ -80,7 +80,7 @@ class CsharpCompleter( ThreadedCompleter ): def _StartServer( self ): """ Start the OmniSharp server """ if not self._ServerIsRunning(): - solutionfiles = self._FindSolutionFiles() + solutionfiles, folder = self._FindSolutionFiles() if len( solutionfiles ) == 0: vimsupport.PostVimMessage( @@ -125,7 +125,7 @@ class CsharpCompleter( ThreadedCompleter ): if folder == lastfolder: break solutionfiles = glob.glob1( folder, '*.sln' ) - return solutionfiles + return solutionfiles, folder def _GetCompletions( self ): """ Ask server for completions """