Ignored files
This commit is contained in:
parent
05b46a883f
commit
1f5bbae5ec
6 changed files with 3216 additions and 2988 deletions
|
|
@ -40,6 +40,8 @@ export const debugging = {
|
|||
logToConsole
|
||||
};
|
||||
|
||||
export { globsToRegexes } from "./utils/globs-to-regexes";
|
||||
|
||||
export const utils = {
|
||||
getRandomColor,
|
||||
positionToLineAndColumn,
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue