Skip to content

Commit

Permalink
test/integration/codelens: fix type error
Browse files Browse the repository at this point in the history
Change-Id: I54fbbeac677e76e5e9fbe2c31cc82900b9d3af5d
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/407074
TryBot-Result: kokoro <[email protected]>
Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
Reviewed-by: Suzy Mueller <[email protected]>
  • Loading branch information
hyangah committed May 18, 2022
1 parent cdd8871 commit c9cc7b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/codelens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ suite('Code lenses for testing and benchmarking', function () {
const found = [] as string[];
for (let i = 0; i < codeLenses.length; i++) {
const lens = codeLenses[i];
if (lens.command.command === 'go.test.cursor') {
found.push(lens.command.arguments[0].functionName);
if (lens.command?.command === 'go.test.cursor') {
found.push(lens.command.arguments?.[0].functionName);
}
}
found.sort();
Expand Down

0 comments on commit c9cc7b4

Please sign in to comment.