From 21a29936ed74b2212e1904cca6c22bff4e27b637 Mon Sep 17 00:00:00 2001 From: Prabir Shrestha Date: Mon, 1 Feb 2021 20:10:04 -0800 Subject: [PATCH] pass server_name as part of next notification in lsp#request (#1064) --- autoload/lsp.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/lsp.vim b/autoload/lsp.vim index b2a259a2..e9d59ca0 100644 --- a/autoload/lsp.vim +++ b/autoload/lsp.vim @@ -1025,7 +1025,7 @@ endfunction function! s:request_on_notification(ctx, id, data, event) abort if a:ctx['cancelled'] | return | endif " caller already unsubscribed so don't bother notifying let a:ctx['done'] = 1 - call a:ctx['next'](a:data) + call a:ctx['next'](extend({ 'server_name': a:ctx['server_name'] }, a:data)) call a:ctx['complete']() endfunction