Revert "Refactor"

This reverts commit c73be7bed2a818a8252519f449b23af6c5c5b2fd.
This commit is contained in:
pi1024e 2019-07-22 08:18:19 -04:00
parent 75a16a4762
commit fda04d1d5c

View file

@ -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 {