Skip to content

Commit

Permalink
Update go.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
K0IN committed Jul 30, 2024
1 parent 791aff0 commit 60eb4f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/suite/go.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ suite('Test golang compatibility', function () {
this.beforeAll(async () => {
await vscode.commands.executeCommand('workbench.action.closeAllEditors');
// install extensions
while (!vscode.extensions.getExtension('golang.go')) {
let tries = 3;
while (!vscode.extensions.getExtension('golang.go') && tries-- > 0) {
console.log(vscode.extensions.all.map((e) => e.id));
await vscode.commands.executeCommand('workbench.extensions.installExtension', 'golang.go');
}
await vscode.extensions.getExtension('golang.go')!.activate();
Expand Down

0 comments on commit 60eb4f7

Please sign in to comment.