mirror of
https://github.com/zadam/trilium.git
synced 2025-12-03 22:14:24 +01:00
Update .github/copilot-instructions.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
parent
004d48d36c
commit
c332e9764a
5
.github/copilot-instructions.md
vendored
5
.github/copilot-instructions.md
vendored
@ -53,10 +53,9 @@ Use `TaskContext` for operations with progress reporting (imports, exports, bulk
|
||||
|
||||
```typescript
|
||||
const taskContext = new TaskContext("task-id", "import", "Import Notes");
|
||||
taskContext.reportProgress(50, "Processing...");
|
||||
taskContext.increaseProgressCount();
|
||||
|
||||
// WebSocket messages: { type: 'task-progress-update', taskId, progress, message }
|
||||
```
|
||||
// WebSocket messages: { type: 'taskProgressCount', taskId, taskType, data, progressCount }
|
||||
|
||||
**Pattern**: All long-running operations (delete note trees, export, import) use TaskContext to send WebSocket updates to the frontend.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user