fixes #101643

上级 2fa8c7c6
......@@ -356,6 +356,12 @@ class InputRenderer implements ICompressibleTreeRenderer<ISCMInput, FuzzyScore,
return undefined;
}
clearValidation(): void {
for (const [, inputWidget] of this.inputWidgets) {
inputWidget.clearValidation();
}
}
}
interface ResourceGroupTemplate {
......@@ -1571,6 +1577,10 @@ class SCMInputWidget extends Disposable {
return this.defaultInputFontFamily;
}
clearValidation(): void {
this.validationDisposable.dispose();
}
dispose(): void {
this.input = undefined;
this.repositoryDisposables.dispose();
......@@ -1718,6 +1728,7 @@ export class SCMViewPane extends ViewPane {
this._register(this.tree.onDidOpen(this.open, this));
this._register(this.tree.onContextMenu(this.onListContextMenu, this));
this._register(this.tree.onDidScroll(this.inputRenderer.clearValidation, this.inputRenderer));
this._register(this.tree);
let viewMode = this.configurationService.getValue<'tree' | 'list'>('scm.defaultViewMode') === 'list' ? ViewModelMode.List : ViewModelMode.Tree;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册