我已经为vs代码扩展编写了单元测试用例。我能够创建QuickFix选项列表,但无法从快速修复列表中选择该选项。
return vscode.commands.executeCommand('editor.action.quickFix').then(async () => {
//after this command quickFix option list is coming
await helper.sleep(400);
return vscode.commands.executeCommand('selectNextQuickFix').then(async () => {
//this command unrecognizable
await helper.sleep(400);
return vscode.commands.executeCommand('acceptQuickFixSuggestion');
})
});