]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Rename the lsp server debug log file name
authorYegappan Lakshmanan <yegappan@yahoo.com>
Thu, 24 Nov 2022 19:56:26 +0000 (11:56 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Thu, 24 Nov 2022 19:56:26 +0000 (11:56 -0800)
autoload/lsp/util.vim
doc/lsp.txt

index 023d8d8a69f7f90551e30c1de51e886815405889..556430f6ba16c9c6bdb5668c2ff0ef8b5579170d 100644 (file)
@@ -35,9 +35,9 @@ export def TraceLog(stderr: bool, msg: string)
     return
   endif
   if stderr
-    writefile(msg->split("\n"), $'{lsp_log_dir}lsp_server.err', 'a')
+    writefile(msg->split("\n"), $'{lsp_log_dir}lsp-server.err', 'a')
   else
-    writefile([msg], $'{lsp_log_dir}lsp_server.out', 'a')
+    writefile([msg], $'{lsp_log_dir}lsp-server.out', 'a')
   endif
 enddef
 
@@ -46,8 +46,8 @@ export def ClearTraceLogs()
   if !lsp_server_trace
     return
   endif
-  writefile([], $'{lsp_log_dir}lsp_server.out')
-  writefile([], $'{lsp_log_dir}lsp_server.err')
+  writefile([], $'{lsp_log_dir}lsp-server.out')
+  writefile([], $'{lsp_log_dir}lsp-server.err')
 enddef
 
 # Convert a LSP file URI (file://<absolute_path>) to a Vim file name
index c3db0ad3aa8fe7302a8b0313ad8e597ec336f7cc..bf8021cba3b100cf3a1e98c9d0dd69b133b34f32 100644 (file)
@@ -542,9 +542,9 @@ can map these commands to keys and make it easier to invoke them.
                        Enable or disable the logging of the messages emitted
                        by a language server in the standard output and
                        standard error.  On a Unix-like system, these messages
-                       are logged to the /tmp/lsp_server.out and
-                       /tmp/lsp_server.err file respectively.  On MS-Windows,
-                       the %TEMP%/lsp_server.out and %TEMP%/lsp_server.err%
+                       are logged to the /tmp/lsp-server.out and
+                       /tmp/lsp-server.err file respectively.  On MS-Windows,
+                       the %TEMP%/lsp-server.out and %TEMP%/lsp-server.err%
                        files are used.
 
                                                *:LspServerRestart*
@@ -852,8 +852,8 @@ logging of the messages: >
 By default, the messages are not logged.
 
 The messages printed by the language server in the stdout are logged to the
-lsp_server.out file and the messages printed in the stderr are logged to the
-lsp_server.err file.  On a Unix-like system, these files are created in the
+lsp-server.out file and the messages printed in the stderr are logged to the
+lsp-server.err file.  On a Unix-like system, these files are created in the
 /tmp directory.  On MS-Windows, these files are created in the %TEMP%
 directory.