Handle errors from Dynamic Debug Configuration providers (#202622)

* Handle errors from Dynamic Debug Configuration providers

If a Dynamic Configuration provider, via its method `provideDebugConfigurations`, returns `undefined` or throws an Error, the selector in the Debug Tab is left in a borked state instead of going back to the last selected item. 
This was initially reported in https://github.com/microsoft/vscode/issues/198798, whose fix handled some cases, but not all. This commit attempts to handle all the remaining cases.

* Use logservice to report error

* Fix build

---------

Co-authored-by: Rob Lourens <roblourens@gmail.com>
This commit is contained in:
Walter Erquinigo
2024-07-29 12:39:36 -04:00
committed by GitHub
parent c8feac1c7a
commit e3b1073902
2 changed files with 17 additions and 3 deletions

View File

@@ -61,7 +61,8 @@ suite('debugConfigurationManager', () => {
new TestExtensionService(),
new TestHistoryService(),
new UriIdentityService(fileService),
new ContextKeyService(configurationService));
new ContextKeyService(configurationService),
new NullLogService());
});
teardown(() => disposables.dispose());