Custom diagnostics allows to define your own diagnostics to show them in problems panel. These diagnostics
This extension provides a way to define a diagnostic and a replace rule in a file. Then you set the file path in extension settings, in property "JAMDiagnosticsFile".
You can set in this file with replacing rules and rulesets this way:
The properties of a replacing rule have the following meaning:
For helping you to make rules and rulesets, you can use the following snippets:
With command "JAM Custom Rules. Pick a ruleset and apply replacements in all workspace documents" we can pick a ruleset from the list and replace all occurrences in all documents.
Fixes is a subtle way to do replacements. The replacement will be done only if the line has a problem, with an error code. You can set a fix this way:
The meaning: the replacing will be applied only if the line has a problem with code "AL0223", in problems panel.
Bellow you can configure a set of fixes and aplly them in all workspace documents with the command "JAM Fixes. Pick a fixset and apply fixes in all workspace documents diagnostics". Then you choose a fixset if you are more than one, and will apply all fixes in all documents.
In the same file we set the replacing rules we can set a digsnotics to find and show in problems panel.
The properties of a rule have the following meaning:
This extension contributes the following settings:
Only shows custom diagnostics in problems panel, if you open the text document in your editor. I am thinking to do or not other way due performanece issues. So not sure this will be an issue or not.
The beta with replacement rules and diagnostics when you open the document.
Image creative common icon image from: https://uxwing.com/find-and-replace-icon/
Change description of the extension.
Issue reading settings, can not execute replacing.
Separate replace rules and rulesets from diagnostics.
Fixing replace rules
fileExtension property in ruleset
Optimization and progress bar
Multi-line search and replacement
Showing fixes in quick fix.
Fixing issues with replacing by empty string.
Activation events for language json.
Issue with search with negative clauses
Able to set one or more aditional rule files with settings property "JAMDiagnostics.AdditionalFilePaths". This setting will load as rules, diagnostics and fixes as you need been able to separate files to ease the configuration.