priyamsahoo / ansible-config-vscode

A VSCode extension that provides language services and features for ansible.cfg file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Config VSCode Extension

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

Functionality

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.

Running the Sample

  • 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.

About

A VSCode extension that provides language services and features for ansible.cfg file


Languages

Language:TypeScript 98.2%Language:Python 1.0%Language:JavaScript 0.6%Language:Shell 0.2%