feat(server): workspace doc update event from indexer (#12186)

fix AI-108
fix AI-109
fix AI-13
This commit is contained in:
darkskygit
2025-05-09 07:35:47 +00:00
parent 918b3b2dab
commit 5f5de8e89d
6 changed files with 66 additions and 8 deletions

View File

@@ -164,7 +164,10 @@ export class ContextSession implements AsyncDisposable {
}
async removeFile(fileId: string): Promise<boolean> {
await this.models.copilotContext.deleteEmbedding(this.contextId, fileId);
await this.models.copilotContext.deleteFileEmbedding(
this.contextId,
fileId
);
this.config.files = this.config.files.filter(f => f.id !== fileId);
await this.save();
return true;