Skip to content

Commit 295ccd5

Browse files
committed
disable half-finished test explorer implementation
for next release
1 parent 1761e96 commit 295ccd5

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

src/extension.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { setContext, installServeD, compileServeD, getInstallOutput, downloadFil
66
import { EventEmitter } from "events";
77
import * as ChildProcess from "child_process";
88
import * as which from "which";
9-
import { TestHub, testExplorerExtensionId, TestController, TestAdapter } from 'vscode-test-adapter-api';
109

1110
import * as mode from "./dmode";
1211
import * as statusbar from "./statusbar";
@@ -22,7 +21,6 @@ import { CodedAPI, Snippet } from "code-d-api";
2221
import { builtinPlugins } from "./builtin_plugins";
2322
import { CodedAPIServedImpl } from "./api_impl";
2423
import { restoreCreateProjectPackageBackup } from "./project-creator";
25-
import { TestAdapterGenerator, UnittestProject } from "./testprovider";
2624
import { registerDebuggers, linkDebuggersWithServed } from "./debug";
2725
import { DubTasksProvider } from "./dub-tasks";
2826

@@ -192,11 +190,6 @@ function startClient(context: vscode.ExtensionContext) {
192190
"--provide", "tasks-current",
193191
];
194192

195-
// for integration with test explorer
196-
const testExplorerExtension = vscode.extensions.getExtension<TestHub>(testExplorerExtensionId);
197-
if (testExplorerExtension)
198-
args.push("--provide", "test-runner");
199-
200193
let executable: ServerOptions = {
201194
run: {
202195
command: servedPath,
@@ -267,16 +260,6 @@ function startClient(context: vscode.ExtensionContext) {
267260
served.refreshDependencies();
268261
});
269262

270-
if (testExplorerExtension) {
271-
const testHub = testExplorerExtension.exports;
272-
273-
const generator = new TestAdapterGenerator(served, testHub);
274-
context.subscriptions.push(generator);
275-
client.onNotification("coded/pushProjectTests", function (tests: UnittestProject) {
276-
generator.updateTests(tests);
277-
});
278-
}
279-
280263
const startupProgress = new statusbar.StartupProgress();
281264
client.onNotification("window/logMessage", function (info: { type: MessageType, message: string }) {
282265
if (info.type == MessageType.Log && info.message.startsWith("[progress]")) {

0 commit comments

Comments
 (0)