]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
After LSP server initialization is complete, request symbols only if the outline...
authorYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 17 Jan 2022 16:49:03 +0000 (08:49 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 17 Jan 2022 16:49:03 +0000 (08:49 -0800)
autoload/handlers.vim

index c17de720915ffa4a1133ab4841ce947f987b24c8..f6804165a830443aa607e743a86fd4990316b585 100644 (file)
@@ -103,7 +103,9 @@ def s:processInitializeReply(lspserver: dict<any>, req: dict<any>, reply: dict<a
 
   # if the outline window is opened, then request the symbols for the current
   # buffer
-  lspserver.getDocSymbols(@%)
+  if bufwinid('LSP-Outline') != -1
+    lspserver.getDocSymbols(@%)
+  endif
 enddef
 
 # process the 'textDocument/definition' / 'textDocument/declaration' /