File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export class DotnetRuntimeExtensionResolver implements IHostExecutableResolver {
38
38
return this . hostInfo ;
39
39
}
40
40
41
- this . channel . appendLine ( `Acquiring .NET runtime version ${ DotNetRuntimeVersion } ` ) ;
41
+ this . channel . appendLine ( `Locating .NET runtime version ${ DotNetRuntimeVersion } ` ) ;
42
42
const extensionArchitecture = ( await this . getArchitectureFromTargetPlatform ( ) ) ?? process . arch ;
43
43
const findPathRequest : IDotnetFindPathContext = {
44
44
acquireContext : {
Original file line number Diff line number Diff line change @@ -95,20 +95,19 @@ export async function activate(
95
95
requiredDotnetRuntimeExtensionVersion ,
96
96
dotnetRuntimeExtensionId
97
97
) ;
98
- await vscode . window . showErrorMessage ( prompt , button ) . then ( async ( selection ) => {
99
- if ( selection === button ) {
100
- await vscode . commands . executeCommand ( 'workbench.extensions.installExtension' , dotnetRuntimeExtensionId ) ;
101
- await vscode . commands . executeCommand ( 'workbench.action.reloadWindow' ) ;
102
- } else {
103
- throw new Error (
104
- vscode . l10n . t (
105
- 'Version {0} of the .NET Install Tool ({2}) was not found, will not activate.' ,
106
- requiredDotnetRuntimeExtensionVersion ,
107
- dotnetRuntimeExtensionId
108
- )
109
- ) ;
110
- }
111
- } ) ;
98
+ const selection = await vscode . window . showErrorMessage ( prompt , button ) ;
99
+ if ( selection === button ) {
100
+ await vscode . commands . executeCommand ( 'workbench.extensions.installExtension' , dotnetRuntimeExtensionId ) ;
101
+ await vscode . commands . executeCommand ( 'workbench.action.reloadWindow' ) ;
102
+ } else {
103
+ throw new Error (
104
+ vscode . l10n . t (
105
+ 'Version {0} of the .NET Install Tool ({2}) was not found, will not activate.' ,
106
+ requiredDotnetRuntimeExtensionVersion ,
107
+ dotnetRuntimeExtensionId
108
+ )
109
+ ) ;
110
+ }
112
111
}
113
112
114
113
// If the dotnet bundle is installed, this will ensure the dotnet CLI is on the path.
You can’t perform that action at this time.
0 commit comments