From 131e7a3162331e2284c531335d97a1c4d7be0897 Mon Sep 17 00:00:00 2001 From: Ramya Achutha Rao Date: Wed, 29 Mar 2017 17:44:58 -0700 Subject: [PATCH] Consistent messaging when function not found at cursor --- src/goGenerateTests.ts | 2 +- src/goTest.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/goGenerateTests.ts b/src/goGenerateTests.ts index 48d8b7231..7962a1efd 100644 --- a/src/goGenerateTests.ts +++ b/src/goGenerateTests.ts @@ -89,7 +89,7 @@ export function generateTestCurrentFunction(): Thenable { } }; if (!currentFunction) { - vscode.window.setStatusBarMessage('No function found at cursor.', 5000); + vscode.window.showInformationMessage('No function found at cursor.'); return; } let funcName = currentFunction.name; diff --git a/src/goTest.ts b/src/goTest.ts index 661e7f326..0a6e2f371 100644 --- a/src/goTest.ts +++ b/src/goTest.ts @@ -75,7 +75,7 @@ export function testAtCursor(goConfig: vscode.WorkspaceConfiguration, args: any) } }; if (!testFunction) { - vscode.window.setStatusBarMessage('No test function found at cursor.', 5000); + vscode.window.showInformationMessage('No test function found at cursor.'); return; } return goTest({