This commit is contained in:
Andras Schmelczer 2025-11-30 11:23:12 +00:00
parent 10bde4bc3a
commit d07fa32ba3
3 changed files with 6 additions and 6 deletions

View file

@ -85,7 +85,7 @@ export class LogsView extends ItemView {
cls: "clickable-icon" cls: "clickable-icon"
}); });
setIcon(copyButton, "clipboard-copy"); setIcon(copyButton, "clipboard-copy");
copyButton.addEventListener("click", () => this.copyLogsToClipboard()); copyButton.addEventListener("click", () => { this.copyLogsToClipboard(); });
controls.createEl("select", {}, (dropdown) => { controls.createEl("select", {}, (dropdown) => {
logLevels.forEach(({ label, value }) => logLevels.forEach(({ label, value }) =>

View file

@ -75,7 +75,7 @@ export class SafeFileSystemOperations implements FileSystemOperations {
public async exists( public async exists(
path: RelativePath, path: RelativePath,
skipLock: boolean = false skipLock = false
): Promise<boolean> { ): Promise<boolean> {
this.logger.debug(`Checking if file '${path}' exists`); this.logger.debug(`Checking if file '${path}' exists`);
if (skipLock) { if (skipLock) {
@ -100,7 +100,7 @@ export class SafeFileSystemOperations implements FileSystemOperations {
public async rename( public async rename(
oldPath: RelativePath, oldPath: RelativePath,
newPath: RelativePath, newPath: RelativePath,
skipLock: boolean = false skipLock = false
): Promise<void> { ): Promise<void> {
this.logger.debug(`Renaming file '${oldPath}' to '${newPath}'`); this.logger.debug(`Renaming file '${oldPath}' to '${newPath}'`);
return this.safeOperation( return this.safeOperation(
@ -122,11 +122,11 @@ export class SafeFileSystemOperations implements FileSystemOperations {
return this.locks.tryLock(path); return this.locks.tryLock(path);
} }
public waitForLock(path: RelativePath) { public async waitForLock(path: RelativePath): Promise<void> {
return this.locks.waitForLock(path); return this.locks.waitForLock(path);
} }
public unlock(path: RelativePath) { public unlock(path: RelativePath): void {
this.locks.unlock(path); this.locks.unlock(path);
} }

View file

@ -270,7 +270,7 @@ export class Syncer {
public async waitUntilFinished(): Promise<void> { public async waitUntilFinished(): Promise<void> {
await this.runningScheduleSyncForOfflineChanges; await this.runningScheduleSyncForOfflineChanges;
return this.syncQueue.onEmpty(); await this.syncQueue.onEmpty();
} }
public async syncRemotelyUpdatedFile( public async syncRemotelyUpdatedFile(