VS Code language client for XML support, powered by xml-language-server and
xml-language-service.
Full setup instructions are available at:
https://harshanacz.github.io/xml-language-client/
The source for the documentation site lives in docs/.
VS Code extension
-> xml-language-client
-> xml-language-server
-> xml-language-service
The client activates when VS Code opens XML-family files and starts the language
server over stdio from ../xml-language-server/dist/server.js.
During local development, keep the three repositories as siblings:
xml-language-workspace/
xml-language-service/
xml-language-server/
xml-language-client/
mkdir xml-language-workspace
cd xml-language-workspace
git clone https://github.com/harshanacz/xml-language-service.git
git clone https://github.com/harshanacz/xml-language-server.git
git clone https://github.com/harshanacz/xml-language-client.gitBuild in dependency order:
cd xml-language-service
npm install
npm run build
cd ../xml-language-server
npm install
npm run bundle
cd ../xml-language-client
npm install
npm run buildOpen xml-language-client in VS Code and run the Launch Extension debug
configuration. In the Extension Development Host window, open an .xml, .xsd,
or .xsl file to activate the client.
For a sample XML workspace, use:
git clone https://github.com/harshanacz/xls-test.git
code xls-testCustom XSD associations can be configured in VS Code settings:
{
"xmlLanguageServer.schemas": [
{
"pattern": "config.xml",
"xsdPath": "schemas/config.xsd"
}
]
}Relative xsdPath values are resolved from the workspace root.
npm run package