Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Visual studio code popup documentation API

Hi I am trying gather a list of all my Javascript functions in my project together with the comments for each function. Visual studio code provides a beautiful way of viewing each function with a popup, but I have no idea how it works and where to start my research. Anyone know an API I could use or what I can do to get this data?

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Based on the provided print screen, as it presents the Quick Fix... at the Botton, I would say you are looking for the CodeActionProvider API.

The VS Code team provides a repo full of samples at https://github.com/microsoft/vscode-extension-samples, and this API in particular is at https://github.com/microsoft/vscode-extension-samples/tree/main/code-actions-sample.

The VS Code website also provides a complete overview of language related features, at https://code.visualstudio.com/api/language-extensions/programmatic-language-features. You could take a closer look and decide which one better fit your needs.

Hope this helps

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading