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';
99import { CoreClrDebugUtil } from '../../coreclrDebug/util' ;
1010import { DotnetInfo } from './dotnetInfo' ;
1111
12- let _dotnetInfo : DotnetInfo | undefined ;
13-
1412// This function calls `dotnet --info` and returns the result as a DotnetInfo object.
1513export async function getDotnetInfo ( dotNetCliPaths : string [ ] ) : Promise < DotnetInfo > {
16- if ( _dotnetInfo !== undefined ) {
17- return _dotnetInfo ;
18- }
19-
2014 const dotnetExecutablePath = getDotNetExecutablePath ( dotNetCliPaths ) ;
2115
2216 try {
@@ -62,15 +56,15 @@ export async function getDotnetInfo(dotNetCliPaths: string[]): Promise<DotnetInf
6256 }
6357
6458 if ( version !== undefined ) {
65- _dotnetInfo = {
59+ const dotnetInfo : DotnetInfo = {
6660 CliPath : cliPath ,
6761 FullInfo : fullInfo ,
6862 Version : version ,
6963 RuntimeId : runtimeId ,
7064 Architecture : architecture ,
7165 Runtimes : runtimeVersions ,
7266 } ;
73- return _dotnetInfo ;
67+ return dotnetInfo ;
7468 }
7569
7670 throw new Error ( 'Failed to parse dotnet version information' ) ;
You can’t perform that action at this time.
0 commit comments