diff --git a/plugin/src/sync-operations/syncer.ts b/plugin/src/sync-operations/syncer.ts index ce56630..15abec7 100644 --- a/plugin/src/sync-operations/syncer.ts +++ b/plugin/src/sync-operations/syncer.ts @@ -78,8 +78,9 @@ export class Syncer { public async syncRemotelyUpdatedFile( remoteVersion: components["schemas"]["DocumentVersionWithoutContent"] ): Promise { - await this.syncQueue.add(async () => - this.internalSyncRemotelyUpdatedFile(remoteVersion) + await this.syncQueue.add( + async () => + this.internalSyncRemotelyUpdatedFile(remoteVersion) ); } diff --git a/plugin/src/views/logs-view.ts b/plugin/src/views/logs-view.ts index c94e68d..4d36fa6 100644 --- a/plugin/src/views/logs-view.ts +++ b/plugin/src/views/logs-view.ts @@ -91,9 +91,9 @@ export class LogsView extends ItemView { logsContainer = container.createDiv( { cls: "logs-container" }, - (logsContainer) => { - logs.slice(-100).forEach((message) => - logsContainer.createDiv( + (element) => { + logs.forEach((message) => + element.createDiv( { cls: ["log-message", message.level], }, @@ -113,7 +113,7 @@ export class LogsView extends ItemView { } ); - if (scrollPosition) { + if (scrollPosition !== undefined) { logsContainer.scrollTop = scrollPosition; } else { logsContainer.scrollTop = logsContainer.scrollHeight;