Skip to content

Commit 72b82e3

Browse files
committed
vsx-registry: add hint to fetching extensions error
Clarifies the error by suggesting it could be caused by network configuration issues. Contributed by STMicroelectronics Signed-off-by: Samuel BERG <[email protected]>
1 parent 1890fbc commit 72b82e3

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
## v1.41.0 -
77
- [application-package] Quit Electron app when back end fails to start [#12778](https://github.com/eclipse-theia/theia/pull/12778) - Contributed on behalf of STMicroelectronics.
88
- [vscode] added support for tree checkbox api [#12836](https://github.com/eclipse-theia/theia/pull/12836) - Contributed on behalf of STMicroelectronics
9+
- [vsx-registry] added a hint to extension fetching errors [#placeholder](https://github.com/eclipse-theia/theia/pull/placeholder) - Contributed by STMicroelectronics
10+
911
## v1.40.0 - 07/27/2023
1012

1113
- [application-package] bumped the default supported VS Code API from `1.78.0` to `1.79.0` [#12764](https://github.com/eclipse-theia/theia/pull/12764) - Contributed on behalf of STMicroelectronics.

packages/core/i18n/nls.json

+1
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@
430430
"vsx-registry": {
431431
"downloadCount": "Download count: {0}",
432432
"errorFetching": "Error fetching extensions.",
433+
"errorFetchingHint": "This could be caused by network configuration issues.",
433434
"failedInstallingVSIX": "Failed to install {0} from VSIX.",
434435
"invalidVSIX": "The selected file is not a valid \"*.vsix\" plugin.",
435436
"license": "License: {0}",

packages/vsx-registry/src/browser/vsx-extensions-widget.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,10 @@ export class VSXExtensionsWidget extends SourceTreeWidget implements BadgeWidget
143143
const searchError = this.extensionsSource.getModel().searchError;
144144
if (!!searchError) {
145145
const message = nls.localize('theia/vsx-registry/errorFetching', 'Error fetching extensions.');
146+
const hint = nls.localize('theia/vsx-registry/errorFetchingHint', 'This could be caused by network configuration issues.');
146147
return <AlertMessage
147148
type='ERROR'
148-
header={`${message} ${searchError}`}
149+
header={`${message} ${searchError} ${hint}`}
149150
/>;
150151
}
151152
}

0 commit comments

Comments
 (0)