Add replaceAll method to OutputChannel to improve render flickering for extensions with minimal output contents; associated with https://github.com/microsoft/vscode/issues/132183

This commit is contained in:
Simon McEnlly
2021-11-03 15:35:53 +10:00
parent f961b92f0f
commit 0603dcd867
8 changed files with 182 additions and 9 deletions

View File

@@ -55,6 +55,12 @@ class ExtHostOutputChannelBackedByFile extends AbstractExtHostOutputChannel {
this._onDidAppend.fire();
}
override replaceAll(value: string): void {
this._appender.append(value);
this._appender.flush();
super.replaceAll(value);
}
override update(): void {
this._appender.flush();
super.update();