Skip to content

Commit 630078f

Browse files
committed
review feedback
1 parent ffe75f5 commit 630078f

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

src/lsptoolshost/dotnetRuntimeExtensionResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class DotnetRuntimeExtensionResolver implements IHostExecutableResolver {
3838
return this.hostInfo;
3939
}
4040

41-
this.channel.appendLine(`Acquiring .NET runtime version ${DotNetRuntimeVersion}`);
41+
this.channel.appendLine(`Locating .NET runtime version ${DotNetRuntimeVersion}`);
4242
const extensionArchitecture = (await this.getArchitectureFromTargetPlatform()) ?? process.arch;
4343
const findPathRequest: IDotnetFindPathContext = {
4444
acquireContext: {

src/main.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,19 @@ export async function activate(
9595
requiredDotnetRuntimeExtensionVersion,
9696
dotnetRuntimeExtensionId
9797
);
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+
}
112111
}
113112

114113
// If the dotnet bundle is installed, this will ensure the dotnet CLI is on the path.

0 commit comments

Comments
 (0)