Peter Judge
16 posts
Registered:
11 Aug 2022
12 Feb
in reply to
Roger Blanchard
Link to this post
The Ant Target Runner extension is meant to set that value, to the filename that was saved. And it does. Sometimes. We've been having all kinds of high jinks with the extension, both internally and at various customer projects, to the point that we are going to create a replacement for it. That should be available sometime in March.
In the meantime, you can create a task in VS Code to let you manually generate the annotations. I would suggest adding it to the workspace tasks. In your .code-workspace file, add the below. If you have tasks already defined in the workspace, then just add the task itself (inside the tasks array).
You'll need to correct the value of the cwd property, and potentially also the path to the OpenEdge install..
You can then run it using F1/SHIFT-CTRL-P and selecting Tasks: Run Build Task. "Run annotation builder" should appear in the dropdown that appears. You need to be in the program that you want to generate the annotations for.
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "Run annotation builder",
"type": "shell",
"options": {
"cwd": "/path/to/project"
},
"command": "c:/Progress/OpenEdge/bin/proant -lib c:/Progress/OpenEdge/PCT/PCT.jar -f annotations.xml ExtractClassAnnotationsVsCode -DautoTargetTriggerFilename=${fileBasename}",
"args": [],
"problemMatcher": [],
"presentation": {
"reveal": "always"
},
"group": "build"
}
]
}