From: Yegappan Lakshmanan Date: Thu, 24 Nov 2022 19:56:26 +0000 (-0800) Subject: Rename the lsp server debug log file name X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=de4cc02ffadba798c61c7ce5de6fa7894452c00a;p=vim-lsp.git Rename the lsp server debug log file name --- diff --git a/autoload/lsp/util.vim b/autoload/lsp/util.vim index 023d8d8..556430f 100644 --- a/autoload/lsp/util.vim +++ b/autoload/lsp/util.vim @@ -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://) to a Vim file name diff --git a/doc/lsp.txt b/doc/lsp.txt index c3db0ad..bf8021c 100644 --- a/doc/lsp.txt +++ b/doc/lsp.txt @@ -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.