提交 52786893 编写于 作者: J João Moreno

use disposableTimeout

上级 1cc01956
......@@ -322,8 +322,8 @@ class InputRenderer implements ICompressibleTreeRenderer<ISCMInput, FuzzyScore,
};
// Setup height change listener on next tick
const timeout = setTimeout(startListeningContentHeightChange, 0);
disposables.add({ dispose: () => clearTimeout(timeout) });
const timeout = disposableTimeout(startListeningContentHeightChange, 0);
disposables.add(timeout);
// Layout the editor whenever the outer layout happens
const layoutEditor = () => templateData.inputWidget.layout();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册