mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 13:19:54 +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:
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
|
```typescript
|
||||||
const taskContext = new TaskContext("task-id", "import", "Import Notes");
|
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.
|
**Pattern**: All long-running operations (delete note trees, export, import) use TaskContext to send WebSocket updates to the frontend.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user