Skip to content

Commit 03d0cb8

Browse files
vsx-registry: add hint to fetching extensions error (#12858)
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 6299414 commit 03d0cb8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- [Previous Changelogs](https://github.com/eclipse-theia/theia/tree/master/doc/changelogs/)
66

7+
## v1.42.0
8+
9+
- [vsx-registry] added a hint to extension fetching ENOTFOUND errors [#12858](https://github.com/eclipse-theia/theia/pull/12858) - Contributed by STMicroelectronics
10+
711
## v1.41.0 - 08/31/2023
812

913
- [application-package] added handling to quit the electron app when the backend fails to start [#12778](https://github.com/eclipse-theia/theia/pull/12778) - Contributed on behalf of STMicroelectronics.

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,11 @@ 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 configurationHint = nls.localize('theia/vsx-registry/errorFetchingConfigurationHint', 'This could be caused by network configuration issues.');
147+
const hint = searchError.includes('ENOTFOUND') ? configurationHint : '';
146148
return <AlertMessage
147149
type='ERROR'
148-
header={`${message} ${searchError}`}
150+
header={`${message} ${searchError} ${hint}`}
149151
/>;
150152
}
151153
}

0 commit comments

Comments
 (0)