plugin/server.py
def notify_enter(self, view, parse_file=True):
        '''
        Sends a notification to the ycmd server that the file for `view` has
        been activated. This will create and cache file-specific identifiers.

        If `parse_file` is true, an additional notification will be sent to
        indicate that the file should be parsed for identifiers. Otherwise,
        this step is skipped. This is optional, but gives better completions.

        The actual request is sent asynchronously via a task pool, so this
        won't block the caller.
        '''
        if not isinstance(view, View):
            raise TypeError('view must be a View: %r' % (view))

        request_params = view.generate_request_parameters()
        if not request_params:
            logger.debug('failed to generate request params, abort')
            return None

        server = self.get(view)
        if not server:
            logger.warning('failed to get server for view: %r', view)
            return None

        def notify_ready_to_parse(server=server,
                                  request_params=request_params):
            server.notify_file_ready_to_parse(request_params)

        def notify_buffer_enter(server=server,
                                request_params=request_params):
            server.notify_buffer_enter(request_params)

        if parse_file:
            def notify_enter_async(server=server,
                                   request_params=request_params):
                notify_ready_to_parse(
                    server=server, request_params=request_params,
                )
                notify_buffer_enter(
                    server=server, request_params=request_params,
                )
        else:
            def notify_enter_async(server=server,
                                   request_params=request_params):
                notify_buffer_enter(
                    server=server, request_params=request_params,
                )

        notify_future = self._task_pool.submit(
            notify_enter_async,
            server=server, request_params=request_params,
        )   # type: concurrent.futures.Future
        return notify_future

        Sends a notification to the ycmd server that the file for `view` has
        been activated. This will create and cache file-specific identifiers.

        If `parse_file` is true, an additional notification will be sent to
        indicate that the file should be parsed for identifiers. Otherwise,
        this step is skipped. This is optional, but gives better completions.

        The actual request is sent asynchronously via a task pool, so this
        won't block the caller.
        
Sends a notification to the ycmd server that the file for `view` has
been activated. This will create and cache file-specific identifiers.

If `parse_file` is true, an additional notification will be sent to
indicate that the file should be parsed for identifiers. Otherwise,
this step is skipped. This is optional, but gives better completions.

The actual request is sent asynchronously via a task pool, so this
won't block the caller.
Sends a notification to the ycmd server that the file for ` view ` has been activated . This will create and cache file - specific identifiers . If ` parse_file ` is true an additional notification will be sent to indicate that the file should be parsed for identifiers . Otherwise this step is skipped . This is optional but gives better completions . The actual request is sent asynchronously via a task pool so this won ' t block the caller .
def notify_enter(self, view, parse_file=True):
        if not isinstance(view, View):
            raise TypeError('view must be a View: %r' % (view))
        request_params = view.generate_request_parameters()
        if not request_params:
            logger.debug('failed to generate request params, abort')
            return None
        server = self.get(view)
        if not server:
            logger.warning('failed to get server for view: %r', view)
            return None
        def notify_ready_to_parse(server=server,
                                  request_params=request_params):
            server.notify_file_ready_to_parse(request_params)
        def notify_buffer_enter(server=server,
                                request_params=request_params):
            server.notify_buffer_enter(request_params)
        if parse_file:
            def notify_enter_async(server=server,
                                   request_params=request_params):
                notify_ready_to_parse(
                    server=server, request_params=request_params,
                )
                notify_buffer_enter(
                    server=server, request_params=request_params,
                )
        else:
            def notify_enter_async(server=server,
                                   request_params=request_params):
                notify_buffer_enter(
                    server=server, request_params=request_params,
                )
        notify_future = self._task_pool.submit(
            notify_enter_async,
            server=server, request_params=request_params,
        )   
        return notify_future
def notify_enter ( self , view , parse_file = True ) : if not isinstance ( view , View ) : raise TypeError ( 'view must be a View: %r' % ( view ) ) request_params = view . generate_request_parameters ( ) if not request_params : logger . debug ( 'failed to generate request params, abort' ) return None server = self . get ( view ) if not server : logger . warning ( 'failed to get server for view: %r' , view ) return None def notify_ready_to_parse ( server = server , request_params = request_params ) : server . notify_file_ready_to_parse ( request_params ) def notify_buffer_enter ( server = server , request_params = request_params ) : server . notify_buffer_enter ( request_params ) if parse_file : def notify_enter_async ( server = server , request_params = request_params ) : notify_ready_to_parse ( server = server , request_params = request_params , ) notify_buffer_enter ( server = server , request_params = request_params , ) else : def notify_enter_async ( server = server , request_params = request_params ) : notify_buffer_enter ( server = server , request_params = request_params , ) notify_future = self . _task_pool . submit ( notify_enter_async , server = server , request_params = request_params , ) return notify_future
Sends a notification to the ycmd server that the file for `view` has
been activated.
Sends a notification to the ycmd server that the file for ` view ` has been activated .
'''
        Sends a notification to the ycmd server that the file for `view` has
        been activated. This will create and cache file-specific identifiers.

        If `parse_file` is true, an additional notification will be sent to
        indicate that the file should be parsed for identifiers. Otherwise,
        this step is skipped. This is optional, but gives better completions.

        The actual request is sent asynchronously via a task pool, so this
        won't block the caller.
        ''' # type: concurrent.futures.Future
self
view
parse_file