Reputation: 36
Anyone knows how is it implemented? I'd like use it as base for an xml extension test. Digging in VSCode sources on github i found syntax, brackets an higlight management (mostly via regex), but I cannot understand how suggestions are implemented (the proposed suggestions are tags, attributes and attribute values found in the document).
Upvotes: 0
Views: 681
Reputation: 5579
VS Code provides rich support for language features based on the language server protocol (LSP). So, if a VS Code extension starts a process implementing the LSP for XML, you can get things like auto-completion, hover, linting and more.
Red Hat provides the XML extension, which itself runs Eclipse LemMinX, a Java-based implementation of the LSP for XML. The entry point for its implementation of completion support can be found here.
As of vscode-xml 0.15.0, you don't need Java anymore to run it. You still get extremely advanced XML support from within VS Code, with validation and tag completion based on XSD schema for instance.
Upvotes: 2