This contains a vscode extension that used language server behind the scenes to give ide features for ansible configuration file, i.e., ansible.cfg
.
This server as an example for my talk on Building Rich IDE Features Using Language Server Protocol at FOSSASIA Summit 2023
This Language Server identifies an ansible config file and provides the following language features:
- Completions
- [TODO] Diagnostics
It also includes an End-to-End test.
- Run
npm install
in 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 start compiling the client and server in watch mode.
- Switch to the Run and Debug View in the Sidebar (Ctrl+Shift+D).
- Select
Launch Client
from the drop down (if it is not already). - Press ▷ to run the launch config (F5).
- In the Extension Development Host instance of VSCode, open an
ansible.cfg
file to use the language features.