Other than the general diagnostics, there are XML plug-in specific actions that the user can perform.
Verifying the state of the XML language server
-
Open a terminal in the container named
vscode-xml-<xxx>. -
Run
ps aux | grep javato verify that the XML language server has started. The output should be:java ***/org.eclipse.ls4xml-uber.jar`
If not, see Checking important logs.
Checking XML language server feature flags
-
Check if the features are enabled. The XML plug-in provides multiple settings that can enable and disable features:
-
xml.format.enabled: Enable the formatter -
xml.validation.enabled: Enable the validation -
xml.documentSymbols.enabled: Enable the document symbols
-
-
To diagnose whether the XML language server is working, create a simple XML element, such as
<hello></hello>, and confirm that it appears in the Outline panel on the right. -
If the document symbols do not show, ensure that the
xml.documentSymbols.enabledattribute is set totrue. If it istrue, and there are no symbols, the language server may not be hooked to the editor. If there are document symbols, then the language server is connected to the editor. -
Ensure that the features that the user needs, are set to
truein the settings (they are set totrueby default). If any of the features are not working, or not working as expected, file an issue against the Language Server.
Enabling XML Language Server Protocol (LSP) tracing
To log LSP messages to the VS Code Output view, enable tracing by setting the xml.trace.server attribute to verbose.
Viewing the XML language server log
The log from the language server can be found in the plug-in sidecar at /home/theia/.theia/workspace-storage/<workspace_name>/redhat.vscode-xml/lsp4xml.log.