mirror of
https://github.com/ashwin271/obsidian-vector-search.git
synced 2026-07-22 05:35:32 +00:00
fix: expose requirements and index helpers
This commit is contained in:
parent
b709e3ca9f
commit
bd0c3eece9
1 changed files with 3 additions and 3 deletions
6
main.ts
6
main.ts
|
|
@ -209,7 +209,7 @@ export default class VectorSearchPlugin extends Plugin {
|
|||
await adapter.write(vectorPath, JSON.stringify(payload, null, 2));
|
||||
}
|
||||
|
||||
private async clearVectorStore(): Promise<void> {
|
||||
async clearVectorStore(): Promise<void> {
|
||||
const adapter = this.app.vault.adapter;
|
||||
const vectorPath = this.getVectorStorePath();
|
||||
this.vectorStore.clear();
|
||||
|
|
@ -218,7 +218,7 @@ export default class VectorSearchPlugin extends Plugin {
|
|||
}
|
||||
}
|
||||
|
||||
private markRequirementsStale(): void {
|
||||
markRequirementsStale(): void {
|
||||
this.requirementsOk = null;
|
||||
}
|
||||
|
||||
|
|
@ -351,7 +351,7 @@ export default class VectorSearchPlugin extends Plugin {
|
|||
}
|
||||
}
|
||||
|
||||
private async ensureRequirements(showNotice: boolean): Promise<boolean> {
|
||||
async ensureRequirements(showNotice: boolean): Promise<boolean> {
|
||||
if (this.requirementsOk === true) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue