NativeFiletypeCompletionAvailable works again

This commit is contained in:
Strahinja Val Markovic 2013-09-24 14:48:14 -07:00
parent 967a4dd519
commit bf5708c422

View File

@ -27,7 +27,7 @@ from ycm import vimsupport
from ycm import utils from ycm import utils
from ycm.completers.all.omni_completer import OmniCompleter from ycm.completers.all.omni_completer import OmniCompleter
from ycm.completers.general import syntax_parse from ycm.completers.general import syntax_parse
from ycm.client.base_request import BaseRequest from ycm.client.base_request import BaseRequest, BuildRequestData
from ycm.client.command_request import SendCommandRequest from ycm.client.command_request import SendCommandRequest
from ycm.client.completion_request import CompletionRequest from ycm.client.completion_request import CompletionRequest
from ycm.client.event_notification import SendEventNotificationAsync from ycm.client.event_notification import SendEventNotificationAsync
@ -103,8 +103,11 @@ class YouCompleteMe( object ):
def NativeFiletypeCompletionAvailable( self ): def NativeFiletypeCompletionAvailable( self ):
# TODO: Talk to server about this. try:
return False return BaseRequest.PostDataToHandler( BuildRequestData(),
'filetype_completion_available')
except:
return False
# TODO: This may not be needed at all when the server is ready. Evaluate this # TODO: This may not be needed at all when the server is ready. Evaluate this