mirror of
https://github.com/Microsoft/vscode
synced 2024-08-26 20:39:37 +00:00
parent
0941c02227
commit
f96b8d9003
|
@ -846,12 +846,14 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
|||
}
|
||||
} else {
|
||||
const cwds = this.capabilities.get(TerminalCapability.CwdDetection)?.cwds || [];
|
||||
for (const label of cwds) {
|
||||
items.push({ label });
|
||||
if (cwds && cwds.length > 0) {
|
||||
for (const label of cwds) {
|
||||
items.push({ label });
|
||||
}
|
||||
items = items.reverse();
|
||||
items.unshift({ type: 'separator', label: 'current session' });
|
||||
}
|
||||
|
||||
items = items.reverse();
|
||||
|
||||
// Gather previous session history
|
||||
const history = this._instantiationService.invokeFunction(getDirectoryHistory);
|
||||
const previousSessionItems: IQuickPickItem[] = [];
|
||||
|
|
Loading…
Reference in a new issue