Loading
fix: Don't show error on startup when user is offline
Description
This changes the Account Validation logic that runs on extension startup to not show an error if the GitLab instance is unreachable. The extension will now only proactively show an error if the instance is reachable but the token is invalid. The old logic is still intact when calling the "GitLab: Validate Accounts" command from the command palette.
Related Issues
Resolves #1962 (closed)
How has this been tested?
- Authenticate with the extension
- Disable all networking on your device, e.g. enable Airplane mode
- Open a folder that has a connected GitLab project
- The error should not display.
- If
src/browserorsrc/commonhas been modified, please consider interoperability with the Web IDE. See Running the Extension in WebIDE. - Consider an end-to-end test for significant new features that aren't covered by integration tests.
Screenshots (if appropriate)
The error message in question
What CHANGELOG entry will this MR create?
-
fix:Bug fix fixes - a user-facing issue in production - included in changelog -
feature:New feature - a user-facing change which adds functionality - included in changelog -
BREAKING CHANGE:(fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog - None - other non-user-facing changes
