Skip to content

Commit 0b07495

Browse files
authored
electron - log unexpected setJumpList result (microsoft#154228)
1 parent 9c5408c commit 0b07495

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/platform/workspaces/electron-main/workspacesHistoryMainService.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,10 @@ export class WorkspacesHistoryMainService extends Disposable implements IWorkspa
377377
});
378378

379379
try {
380-
app.setJumpList(jumpList);
380+
const res = app.setJumpList(jumpList);
381+
if (res && res !== 'ok') {
382+
this.logService.warn(`updateWindowsJumpList#setJumpList unexpected result: ${res}`);
383+
}
381384
} catch (error) {
382385
this.logService.warn('updateWindowsJumpList#setJumpList', error); // since setJumpList is relatively new API, make sure to guard for errors
383386
}

0 commit comments

Comments
 (0)