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"
});
setIcon(copyButton, "clipboard-copy");
copyButton.addEventListener("click", () => this.copyLogsToClipboard());
copyButton.addEventListener("click", () => { this.copyLogsToClipboard(); });
controls.createEl("select", {}, (dropdown) => {
logLevels.forEach(({ label, value }) =>

View file

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

View file

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