Ignored files

This commit is contained in:
Andras Schmelczer 2025-12-07 19:26:50 +00:00
commit 1f5bbae5ec
6 changed files with 3216 additions and 2988 deletions

View file

@ -40,6 +40,8 @@ export const debugging = {
logToConsole
};
export { globsToRegexes } from "./utils/globs-to-regexes";
export const utils = {
getRandomColor,
positionToLineAndColumn,

View file

@ -417,6 +417,20 @@ export class SyncClient {
await this.cursorTracker.sendLocalCursorsToServer(documentToCursors);
}
public getTrackedFilePaths(): RelativePath[] {
this.checkIfDestroyed("getTrackedFilePaths");
return this.database.resolvedDocuments
.filter((doc) => !doc.isDeleted && doc.metadata !== undefined)
.map((doc) => doc.relativePath);
}
public async getAllVaultFiles(): Promise<RelativePath[]> {
this.checkIfDestroyed("getAllVaultFiles");
return this.fileOperations.listFilesRecursively(undefined);
}
public async waitUntilFinished(): Promise<void> {
this.checkIfDestroyed("waitUntilIdle");
await this.syncer.waitUntilFinished();