We migrated to the vscode testing api from Test Explorer UI. But we are not able to get code lens (like in the Test Explorer UI) or a play button against each identified test in the editor. We add the tests like below:
const filepath = "file:///" + test.sourceLocation?.file + "#" + test.sourceLocation?.line;
testItem.children.add(controller.createTestItem(test.id, test.labelName, Uri.parse(filepath)));
The navigation to the individual test works, but we don't see any possibility to trigger a test run from the editor.