Skip to content

Commit 3e60818

Browse files
forgotten-logging-can-be-painful (#2366)
* forgotten-logging-can-be-painful Forgotten logging after debugging of LSP problems can cause problems as well * Update docs/page/performance.md * Update docs/page/performance.md
1 parent 7407bba commit 3e60818

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/page/performance.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ Also you can disable the file watch feature with:
5454
(setq lsp-enable-file-watchers nil)
5555
```
5656

57+
## Check if logging is switched off.
58+
59+
Make sure `lsp-log-io` is `nil`. You might have forgotten it after a debugging session, for example. It can cause a great performance hit.
60+
61+
```elisp
62+
(setq lsp-log-io nil) ; if set to true can cause a performance hit
63+
```
64+
65+
Sometimes you might need to check logging for specific LSP server configuration as well, i.e. for `lsp-eslint` it is: `lsp-eslint-trace-server`.
66+
5767
## Reporting performance problems
5868

5969
If you have tried all of the non-optional steps from the list and `emacs` is still not very responsive please open a PR with the following information:

0 commit comments

Comments
 (0)