Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap extensions with try/catch and log exceptions #947

Merged

Conversation

datho7561
Copy link
Contributor

Fixes #946

Signed-off-by: David Thompson [email protected]

@datho7561
Copy link
Contributor Author

Needs tests

@angelozerr
Copy link
Contributor

Needs tests

Your PR looks very good. For writting test I suggest you create a test class for that like ErrorParticipantLanguageServiceTest (like SymbolsProviderParticipantTest) which defines an internal class ErrorParticipantLanguageService which extends XMLLanguageService and register for each support (completion, diagnostics, etc) a participant which throw an error.

After that you write a test per feature which test completion and which should return some result instead of stopping everything.

@datho7561 datho7561 force-pushed the 946-catch-and-log-extension-exceptions branch 2 times, most recently from f55935e to 19b8919 Compare December 16, 2020 14:56
@datho7561 datho7561 marked this pull request as ready for review December 16, 2020 14:58
@datho7561 datho7561 force-pushed the 946-catch-and-log-extension-exceptions branch from 19b8919 to 2bfb29a Compare December 16, 2020 15:12
@datho7561 datho7561 force-pushed the 946-catch-and-log-extension-exceptions branch from 2bfb29a to f8b188a Compare December 17, 2020 16:09
@datho7561 datho7561 force-pushed the 946-catch-and-log-extension-exceptions branch from f8b188a to f56b9e4 Compare December 17, 2020 16:13
@angelozerr angelozerr merged commit 5908306 into eclipse:master Dec 17, 2020
@angelozerr
Copy link
Contributor

Nice job @datho7561 !

@datho7561 datho7561 deleted the 946-catch-and-log-extension-exceptions branch December 22, 2020 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Catch errors from any participants.
2 participants