mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Revert "Refactor"
This reverts commit c73be7bed2a818a8252519f449b23af6c5c5b2fd.
This commit is contained in:
parent
75a16a4762
commit
fda04d1d5c
|
@ -236,7 +236,7 @@ class KeyboardController<T> implements IDisposable {
|
|||
private view: ListView<T>,
|
||||
options: IListOptions<T>
|
||||
) {
|
||||
const multipleSelectionSupport = options.multipleSelectionSupport !== false;
|
||||
const multipleSelectionSupport = !(options.multipleSelectionSupport === false);
|
||||
|
||||
this.openController = options.openController || DefaultOpenController;
|
||||
|
||||
|
@ -394,12 +394,13 @@ class TypeLabelController<T> implements IDisposable {
|
|||
}
|
||||
|
||||
private disable(): void {
|
||||
if (this.enabled) {
|
||||
|
||||
this.enabledDisposables.clear();
|
||||
this.enabled = false;
|
||||
this.triggered = false;
|
||||
if (!this.enabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.enabledDisposables.clear();
|
||||
this.enabled = false;
|
||||
this.triggered = false;
|
||||
}
|
||||
|
||||
private onInput(word: string | null): void {
|
||||
|
|
Loading…
Reference in a new issue