Heavily documented sample code for https://code.visualstudio.com/api/language-extensions/embedded-languages#request-forwarding
This extension contributes a new language, html1. The new language is for illustration purpose and has basic syntax highlighting.
This Language Server works for html1 file. HTML1 is like HTML file but has file extension .html1. You can create a test.html1 file to play with below functionalities:
- Completions for HTML
- Completions for CSS in
<style>tag
- Run
npm installin this folder. This installs all necessary npm modules in both the client and server folder - Open VS Code on this folder.
- Press Ctrl+Shift+B to compile the client and server.
- Switch to the Run and Debug View in the Sidebar (Ctrl+Shift+D).
- Select
Launch Clientfrom the drop down (if it is not already). - Press ▷ to run the launch config (F5).
- In the Extension Development
Host
instance of VSCode, open a HTML document
- Type
<d|to try HTML completion - Type
<style>.foo { c| }</style>to try CSS completion
- Type