dotnet / dotnet/vscode-dotnet-runtime

Enhance installation timeout error message

Open
#1,209 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

When an installation times out (which can also be because the download itself took too long), we should direct users to try changing the default installation timeout. Our error experience should be something like this:

```ts
if (reason && reason.message === timeoutConstants.timeoutMessage)
{
await window.showErrorMessage(
`Timed out after ${this.timeoutValue} seconds while installing the .NET Runtime. You can increase this timeout by changing the 'dotnetAcquisitionExtension.installTimeoutValue' setting to a longer duration.`,
"Go to setting"
).then(selection => {
if (selection == "Go to setting") {
commands.executeCommand("workbench.action.openSettings", "dotnetAcquisitionExtension.installTimeoutValue");
}
})
}
```

in a suitable location. This will show a button that, when clicked, will take the user directly to the setting we specify.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.