提交 2da724e3 编写于 作者: S Sandeep Somavarapu

notify error always

上级 22aaa304
......@@ -35,7 +35,6 @@ import { IUserDataSyncWorkbenchService, CONTEXT_SYNC_STATE, getSyncAreaLabel, CO
import { IUserDataSyncMachinesService, IUserDataSyncMachine } from 'vs/platform/userDataSync/common/userDataSyncMachines';
import { IQuickInputService } from 'vs/platform/quickinput/common/quickInput';
import { INotificationService } from 'vs/platform/notification/common/notification';
import { toErrorMessage } from 'vs/base/common/errorMessage';
import { generateUuid } from 'vs/base/common/uuid';
export class UserDataSyncViewPaneContainer extends ViewPaneContainer {
......@@ -461,6 +460,7 @@ class UserDataSyncMachinesViewDataProvider implements ITreeViewDataProvider {
private readonly treeView: TreeView,
@IUserDataSyncMachinesService private readonly userDataSyncMachinesService: IUserDataSyncMachinesService,
@IQuickInputService private readonly quickInputService: IQuickInputService,
@INotificationService private readonly notificationService: INotificationService,
) { }
async getChildren(element?: ITreeItem): Promise<ITreeItem[]> {
......@@ -480,7 +480,7 @@ class UserDataSyncMachinesViewDataProvider implements ITreeViewDataProvider {
contextValue: 'sync-machine'
}));
} catch (error) {
this.treeView.message = localize('errorMessage', "Error while fetching data - {0}", toErrorMessage(error));
this.notificationService.error(error);
return [];
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册