mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
parent
aacda1dd2f
commit
b2c0466f08
|
@ -341,13 +341,6 @@ export class SuggestAddon extends Disposable implements ITerminalAddon, ISuggest
|
|||
if (model.items.length === 0 || !this._terminal?.element || !this._promptInputModel) {
|
||||
return;
|
||||
}
|
||||
if (model.items.length === 1) {
|
||||
this.acceptSelectedSuggestion({
|
||||
item: model.items[0],
|
||||
model: model
|
||||
});
|
||||
return;
|
||||
}
|
||||
const suggestWidget = this._ensureSuggestWidget(this._terminal);
|
||||
const dimensions = this._getTerminalDimensions();
|
||||
if (!dimensions.width || !dimensions.height) {
|
||||
|
|
Loading…
Reference in a new issue