Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Blocked by #561
Currently the editor is not used, because it would need further rewrite. But @erikhaw could it use in his work.
I rewrited editor + added ability for external EditorExtensions.
This extensions can set specific options to editor for specific file extensions/names
Example usage:
Each property can be also array, so you can create extension for N file extensions, but names and extensions cannot be mixed.
Later we can add more Helpers, or update existing one.
Since we can only use one callback for each CodeMirror's registerHelper specific file type, I'm using something I called HelperMerger, which is just function, which merges the return values from multiple helpers of same file type. For example in the lintHelper it was easy, because it returns array of errors, but in the hintHelper it returns object, with list of hints, and then from and to position, where should be hint put, since each function can return different from and to positions, I just grab the first one and concatenate the lists (it is not best approach, but for now I don't expect us to use more than more one hintHelper at once).
Video showcase:
https://github.com/user-attachments/assets/476bd663-65ca-4028-9a78-9b42fb477c0c