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.
Fixes issue:
#78
Changes:
A 'Set Default Language' option is added under the Setting icon which appears on the top right of the page as shown:
The modal shows a list of all extensions present, with their corresponding number of codes present in brackets. The list is saved in extensions/extensions.txt, which can easily be generated at the developers end by using a script or PowerShell commands.
The user can enable/disable the settings using the toggle switch on the top right of the model.
UI with disabled settings:
After enabling, the user can set his/her default languages(s).
If the results for a topic don't contain any code from any of the user's default languages, then codes with all extensions present are shown. For example, if the user has set his default languages as .cpp and .py, and the topic 'Fuzzy Search' only has codes available in .js and .php, then these 2 codes are shown instead of showing blank.
Also, please note that the settings are applicable after the user refreshes the page.