Skip to content

Commit

Permalink
pass textEdit to NCM so that we only need to change NCM in the future.
Browse files Browse the repository at this point in the history
  • Loading branch information
roxma authored and Junfeng Li committed Oct 25, 2017
1 parent f1b29ff commit ddb2c97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rplugin/python3/LanguageClient/LanguageClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -1035,10 +1035,10 @@ def completionManager_refresh(self, args: List) -> None:
for item in items:
match = convert_lsp_completion_item_to_vim_style(item)

# snippet & textEdit support
match['textEdits'] = []
if item.get('additionalTextEdits', None):
match['textEdits'] = item['additionalTextEdits']
match['additionalTextEdits'] = item['additionalTextEdits']
if item.get('textEdit'):
match['textEdit'] = item['textEdit']

insertText = item.get('insertText', "") or ""
label = item['label']
Expand Down

0 comments on commit ddb2c97

Please sign in to comment.