How to use the atom-languageclient/build/lib/adapters/autocomplete-adapter.canAdapt function in atom-languageclient

To help you get started, we’ve selected a few atom-languageclient examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github facebookarchive / ide-flowtype / lib / FlowAutocompleteAdapter.js View on Github external
description: item.documentation,
      descriptionMarkdown: item.documentation,
    };

    if (item._returnDetail) {
      completion.leftLabel = item._returnDetail;
    }
    if (item._parametersDetail) {
      completion.rightLabel = item._parametersDetail;
    }

    return completion;
  }
}

FlowAutocompleteAdapter.canAdapt = AutocompleteAdapter.canAdapt;
FlowAutocompleteAdapter.completionKindToSuggestionType =
  AutocompleteAdapter.completionKindToSuggestionType;
FlowAutocompleteAdapter.requestToTextDocumentPositionParams =
  AutocompleteAdapter.requestToTextDocumentPositionParams;
FlowAutocompleteAdapter.applyTextEditToSuggestion =
  AutocompleteAdapter.applyTextEditToSuggestion;

module.exports = FlowAutocompleteAdapter;