test/integration/codelens: fix type error

Change-Id: I54fbbeac677e76e5e9fbe2c31cc82900b9d3af5d
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/407074
TryBot-Result: kokoro <noreply+kokoro@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
diff --git a/test/integration/codelens.test.ts b/test/integration/codelens.test.ts
index f3c07d9..e3e1b8f 100644
--- a/test/integration/codelens.test.ts
+++ b/test/integration/codelens.test.ts
@@ -194,8 +194,8 @@
 		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();