Lint & add comments
This commit is contained in:
parent
5abbd5d8ee
commit
b0192aae23
3 changed files with 4 additions and 5 deletions
|
|
@ -80,8 +80,7 @@ export class HistoryView extends ItemView {
|
||||||
|
|
||||||
public async onOpen(): Promise<void> {
|
public async onOpen(): Promise<void> {
|
||||||
await this.updateView();
|
await this.updateView();
|
||||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
this.timer = setInterval(() => void this.updateView(), 1000);
|
||||||
this.timer = setInterval(async () => this.updateView(), 1000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async onClose(): Promise<void> {
|
public async onClose(): Promise<void> {
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ export class FileOperations {
|
||||||
|
|
||||||
const decoder = new TextDecoder("utf-8");
|
const decoder = new TextDecoder("utf-8");
|
||||||
|
|
||||||
|
// Normalize line endings to LF on Windows
|
||||||
let text = decoder.decode(content);
|
let text = decoder.decode(content);
|
||||||
text = text.replace(/\r\n/g, "\n");
|
text = text.replace(/\r\n/g, "\n");
|
||||||
|
|
||||||
|
|
@ -136,6 +137,7 @@ export class FileOperations {
|
||||||
|
|
||||||
public isFileEligibleForSync(path: RelativePath): boolean {
|
public isFileEligibleForSync(path: RelativePath): boolean {
|
||||||
return true;
|
return true;
|
||||||
|
// TODO: figure this out
|
||||||
// if (Platform.isDesktopApp) {
|
// if (Platform.isDesktopApp) {
|
||||||
// return true;
|
// return true;
|
||||||
// }
|
// }
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,7 @@ export class SyncService {
|
||||||
public constructor(private readonly settings: Settings) {
|
public constructor(private readonly settings: Settings) {
|
||||||
this.createClient(settings.getSettings());
|
this.createClient(settings.getSettings());
|
||||||
|
|
||||||
settings.addOnSettingsChangeHandlers((s) => {
|
settings.addOnSettingsChangeHandlers(this.createClient.bind(this));
|
||||||
this.createClient(s);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static formatError(
|
private static formatError(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue