ansible-builder icon indicating copy to clipboard operation
ansible-builder copied to clipboard

Pregenerate json files for each contained plugins docstring during build

Open cidrblock opened this issue 4 years ago • 2 comments

Currently the ansible language server crawls the file systems and uses a regular expression to extract doc strings from plugins.

In the case of execution environments, having ansible builder extract the doc strings during the build process and store them in the container in a well-known location would allow this to be a one-time process vs. a process that occurred each time the language server was started.

This would limit the interaction between the language server and the EE to a simple file content collection process, eg cat *

This is the current process the language server uses: https://github.com/ansible/ansible-language-server/blob/707d53c64a29571922a7924cf4e5ff9b6ad4b68e/src/utils/docsParser.ts#L202

cidrblock avatar Aug 30 '21 14:08 cidrblock

Note: This may not be needed for the initial EE support being added to the ansible language server for it's fall release.

Will confirm......

cidrblock avatar Sep 02 '21 17:09 cidrblock

Confirm, not needed for the fall release of the language server and vscode plugin

cidrblock avatar Sep 16 '21 17:09 cidrblock