I'm trying to automate some tasks within VSCode, specifically with a particular extension. My particular interest is https://github.com/huggingface/huggingface-vscode. I want to collect outputs from https://raw.githubusercontent.com/huggingface/huggingface-vscode/master/assets/ext-output.png.
Here's what I aim to achieve:
- Load a project.
- Open a file and navigate to a specified location within the file.
- I already have the locations of the file where the cursor needs to be for getting the auto-completion suggestions
- Trigger auto-completion at that location.
- Collect the results of the auto-completion.
- Save those results to a file.
Is there any way to programmatically control a VSCode extension to perform these steps?
I want to do this for Github Copilot and huggingface-vscode specifically.
I am okay with a solution that uses an external program (let's say Python code) other than VS Code to drive VS Code to get the desired result.
Example of the screen is attached what I have to capture.