Scope LSP diagnostic refresh to target folder on folder-scoped settings events #6

Open
opened 2026-09-02 02:35:45 -04:00 by toph · 0 comments
Owner

Location

src/lib/features/settings/state/diagnostics.svelte.ts:26

Problem

When Tauri emits a folder-scoped settings change event, event.folder_path identifies the specific folder modified. However, the event listener iterates over all registered folders in the diagnostic state and triggers an LSP refresh across the entire workspace.

Suggested Fix

Check event.folder_path and refresh diagnostics only for the affected folder when specified.

### Location `src/lib/features/settings/state/diagnostics.svelte.ts:26` ### Problem When Tauri emits a folder-scoped settings change event, `event.folder_path` identifies the specific folder modified. However, the event listener iterates over all registered folders in the diagnostic state and triggers an LSP refresh across the entire workspace. ### Suggested Fix Check `event.folder_path` and refresh diagnostics only for the affected folder when specified.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
toph/Sworm#6
No description provided.