Skip to content

Commit 42fa329

Browse files
committed
Use existing child-process
1 parent 6f563df commit 42fa329

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
},
7070
"dependencies": {
7171
"async-file": "2.0.2",
72-
"child-process-promise": "^2.2.1",
7372
"fs-extra": "5.0.0",
7473
"http-proxy-agent": "2.1.0",
7574
"https-proxy-agent": "2.2.1",

src/features/generateBugReport.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import * as vscode from "vscode";
7-
import { getDotnetInfo, getMonoVersion } from "./getdotnetInfo";
7+
import { execChildProcess } from "../common";
88

99
const extensionId = 'ms-vscode.csharp';
1010
const extension = vscode.extensions.getExtension(extensionId);
@@ -91,3 +91,10 @@ function getMonoIfPlatformValid(isValidPlatformForMono: boolean): string{
9191
return "";
9292
}
9393

94+
async function getDotnetInfo(): Promise<string> {
95+
return execChildProcess("dotnet --info", process.cwd());
96+
}
97+
98+
async function getMonoVersion(): Promise<string>{
99+
return execChildProcess("dotnet --info", process.cwd());
100+
}

src/features/getdotnetInfo.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)