You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,8 @@ After finishing the getting started part, this template would have added the fol
48
48
1. Following triggers for extension activation:
49
49
- On Language `python`.
50
50
- On File with `.py` extension found in the opened workspace.
51
-
- On Command `mytool.restart`.
51
+
1. Following commands are registered:
52
+
-`mytool.restart`: Restarts the language server.
52
53
1. Output Channel for logging `Output` > `My Tool`
53
54
54
55
## Adding features from your tool
@@ -82,6 +83,12 @@ To debug only TypeScript code, use `Debug Extension` debug config.
82
83
83
84
To debug a already running server or in production server, use `Python Attach`, and select the process that is running `lsp_server.py`.
84
85
86
+
## Logging and Logs
87
+
88
+
The template creates a logging Output channel that can be found under `Output` > `mytool` panel. You can control the log level running the `Developer: Set Log Level...` command from the Command Pallet, and selecting your extension from the list. It should be listed using the display name for your tool. You can also set the global log level, and that will apply to all extensions and the editor.
89
+
90
+
If you need logs that involve messages between the Language Client and Language Server, you can set `"mytool.server.trace": "verbose"`, to get the messaging logs. These logs are also available `Output` > `mytool` panel.
91
+
85
92
## Adding new Settings or Commands
86
93
87
94
You can add new settings by adding details for the settings in `package.json` file. To pass this configuration to your python tool server (i.e, `lsp_server.py`) update the `settings.ts` as need. There are examples of different types of settings in that file that you can base your new settings on.
0 commit comments