-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #385 from swyddfa/develop
New Release
- Loading branch information
Showing
19 changed files
with
189 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
How To | ||
====== | ||
|
||
.. toctree:: | ||
:glob: | ||
|
||
how-to/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
How To: Get Debug Information | ||
============================= | ||
|
||
In its default configuration the language server doesn't give you much information, you get Sphinx's build output and not much else. | ||
Depending on your needs you may find one of the following options useful. | ||
|
||
Enable Debug Logging | ||
-------------------- | ||
|
||
The simplest way to get more information is to set the :confval:`server.logLevel (string)` option to ``debug``. | ||
Additional messages from the language server will be sent to your language client as :lsp:`window/logMessage` messages. | ||
|
||
Capture All Messages | ||
-------------------- | ||
|
||
If you are using one of the VSCode extensions you can set the ``esbonio.trace.server`` option to ``verbose``. | ||
This will print all LSP message bodies sent to/from the client in the ``Output`` window. | ||
|
||
**Note:** This will generate a *lot* of output. | ||
|
||
Capture All Output | ||
------------------ | ||
|
||
.. important:: | ||
|
||
This option requires the ``lsp-devtools`` package be installed in the same Python environment as the ``esbonio`` language server:: | ||
|
||
$ pip install lsp-devtools | ||
|
||
Alternatively you can capture **everything** sent to/from the language server in a text file ``lsp.log`` by using one of the following debug :ref:`lsp-startup-mods` | ||
|
||
.. startmod:: esbonio.lsp.rst._record | ||
|
||
Exactly the same as :startmod:`esbonio.lsp.rst`, but with output capture enabled. | ||
|
||
.. startmod:: esbonio.lsp.sphinx._record | ||
|
||
Exaclty the same as :startmod:`esbonio.lsp.sphinx` but with output capture enabled. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Add ``esbonio.lsp.rst._record`` and ``esbonio.lsp.sphinx._record`` startup modules. | ||
These can be used to record all LSP client-sever communication to a text file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The language server now detects functionality bundled with standard Sphinx extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""Startup module that launches the real server in a sub process and dumps all messages | ||
to a file.""" | ||
import sys | ||
from argparse import Namespace | ||
|
||
from lsp_devtools.cmds.record import record | ||
|
||
|
||
def main(): | ||
args = Namespace(file="lsp.log", format="%(message)s", raw=True) | ||
cmd = [sys.executable, "-m", "esbonio.lsp.rst"] + sys.argv[1:] | ||
|
||
record(args, cmd) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.