Skip to content

Commit

Permalink
Clean up dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed May 29, 2020
1 parent 707a751 commit a6a6d86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 164 deletions.
162 changes: 0 additions & 162 deletions extension/diagnostics.ts

This file was deleted.

5 changes: 3 additions & 2 deletions extension/main.ts
Expand Up @@ -10,7 +10,7 @@ import * as path from 'path';
import * as querystring from 'querystring';
import JSON5 from 'json5';
import stringArgv from 'string-argv';
import * as diagnostics from './diagnostics';
import * as async from './novsc/async';
import * as htmlView from './htmlView';
import * as util from './configUtils';
import * as adapter from './novsc/adapter';
Expand Down Expand Up @@ -513,7 +513,8 @@ class Extension implements DebugConfigurationProvider, DebugAdapterDescriptorFac
succeeded = await this.checkPython(folder);
if (succeeded) {
let [_, port] = await this.startDebugAdapter(folder, {});
await diagnostics.testAdapter(port);
let socket = await async.net.createConnection({ port: port, timeout: 1000 });
socket.destroy()
}
} catch (err) {
succeeded = false;
Expand Down

0 comments on commit a6a6d86

Please sign in to comment.