src/goTest: cleanup
Removes redundant code that has been moved to run.ts and resolve.ts.
This change was part of CL 344149 but got lost in a merge.
Change-Id: I2f771e807eb61e122c63625ff3d10a742449796d
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/348009
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Trust: Robert Findley <rfindley@google.com>
diff --git a/src/goTest/explore.ts b/src/goTest/explore.ts
index d257b6e..2d9615e 100644
--- a/src/goTest/explore.ts
+++ b/src/goTest/explore.ts
@@ -10,7 +10,6 @@
TestController,
TestItem,
TestItemCollection,
- TestRunProfileKind,
TestRunRequest,
TextDocument,
TextDocumentChangeEvent,
@@ -187,33 +186,6 @@
this.resolver = new GoTestResolver(workspace, ctrl, provideDocumentSymbols);
this.profiler = new GoTestProfiler(this.resolver, workspaceState);
this.runner = new GoTestRunner(workspace, ctrl, this.resolver, this.profiler);
-
- ctrl.resolveHandler = async (item) => {
- try {
- await this.resolver.resolve(item);
- } catch (error) {
- if (isInTest()) throw error;
-
- const m = 'Failed to resolve tests';
- outputChannel.appendLine(`${m}: ${error}`);
- await vscode.window.showErrorMessage(m);
- }
- };
-
- ctrl.createRunProfile(
- 'go test',
- TestRunProfileKind.Run,
- async (request, token) => {
- try {
- await this.runner.run(request, token);
- } catch (error) {
- const m = 'Failed to execute tests';
- outputChannel.appendLine(`${m}: ${error}`);
- await vscode.window.showErrorMessage(m);
- }
- },
- true
- );
}
/* ***** Listeners ***** */