You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diagnostics: Add file path-based configuration support (#313)
This commit implements file path-based filtering for diagnostic patterns
as discussed at
https://publish.obsidian.md/jetls/work/JETLS/diagnostic+Support+file+path+based+configuration,
allowing users to apply different diagnostic configurations to specific
files or directories using glob patterns.
Users can now add an optional `path` field to diagnostic pattern
configurations that accepts glob patterns (e.g., "test/**/*.jl"). When
specified, the diagnostic pattern only applies to files matching that
glob pattern. Patterns are matched against file paths relative to the
workspace root, with support for globstar (`**`) for recursive directory
matching.
Written with a help from Claude.
Copy file name to clipboardExpand all lines: package.json
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -197,6 +197,10 @@
197
197
}
198
198
],
199
199
"description": "Severity level to apply: 'error'/1 for critical issues, 'warning'/'warn'/2 for potential problems, 'information'/'info'/3 for informational messages, 'hint'/4 for suggestions, 'off'/0 to disable."
200
+
},
201
+
"path": {
202
+
"type": "string",
203
+
"description": "Optional glob pattern to restrict this configuration to specific files (e.g., 'test/**/*.jl'). Patterns are matched against file paths relative to the workspace root. Supports globstar (**) for matching directories recursively."
0 commit comments