File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,8 @@ import { execChildProcess } from '../../common';
9
9
import { CoreClrDebugUtil } from '../../coreclrDebug/util' ;
10
10
import { DotnetInfo } from './dotnetInfo' ;
11
11
12
- let _dotnetInfo : DotnetInfo | undefined ;
13
-
14
12
// This function calls `dotnet --info` and returns the result as a DotnetInfo object.
15
13
export async function getDotnetInfo ( dotNetCliPaths : string [ ] ) : Promise < DotnetInfo > {
16
- if ( _dotnetInfo !== undefined ) {
17
- return _dotnetInfo ;
18
- }
19
-
20
14
const dotnetExecutablePath = getDotNetExecutablePath ( dotNetCliPaths ) ;
21
15
22
16
try {
@@ -62,15 +56,15 @@ export async function getDotnetInfo(dotNetCliPaths: string[]): Promise<DotnetInf
62
56
}
63
57
64
58
if ( version !== undefined ) {
65
- _dotnetInfo = {
59
+ const dotnetInfo : DotnetInfo = {
66
60
CliPath : cliPath ,
67
61
FullInfo : fullInfo ,
68
62
Version : version ,
69
63
RuntimeId : runtimeId ,
70
64
Architecture : architecture ,
71
65
Runtimes : runtimeVersions ,
72
66
} ;
73
- return _dotnetInfo ;
67
+ return dotnetInfo ;
74
68
}
75
69
76
70
throw new Error ( 'Failed to parse dotnet version information' ) ;
You can’t perform that action at this time.
0 commit comments