提交 fda04d1d 编写于 作者: P pi1024e

Revert "Refactor"

This reverts commit c73be7bed2a818a8252519f449b23af6c5c5b2fd.
上级 75a16a47
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册