mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Handle when item
is undefined (#214107)
Fixes https://github.com/microsoft/vscode/issues/213363
This commit is contained in:
parent
9b17067697
commit
f4e9ac0f35
|
@ -269,6 +269,9 @@ export async function showRunRecentQuickPick(
|
|||
return;
|
||||
}
|
||||
const [item] = quickPick.activeItems;
|
||||
if (!item) {
|
||||
return;
|
||||
}
|
||||
if ('command' in item && item.command && item.command.marker) {
|
||||
if (!terminalScrollStateSaved) {
|
||||
xterm.markTracker.saveScrollState();
|
||||
|
|
Loading…
Reference in a new issue