Auto merge of #1659 - puremourning:cwd-filetype-completer, r=Valloric

Pass cwd to completer for filename completions

Required for https://github.com/Valloric/ycmd/pull/210. Please see that PR for functional and testing details.
This commit is contained in:
Homu 2015-08-31 02:58:30 +09:00
commit f94b342989

View File

@ -188,6 +188,8 @@ class YouCompleteMe( object ):
self._omnicomp, wrapped_request_data ) self._omnicomp, wrapped_request_data )
return self._latest_completion_request return self._latest_completion_request
request_data[ 'working_dir' ] = os.getcwd()
self._AddExtraConfDataIfNeeded( request_data ) self._AddExtraConfDataIfNeeded( request_data )
if force_semantic: if force_semantic:
request_data[ 'force_semantic' ] = True request_data[ 'force_semantic' ] = True