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.
Description
This PR adds a reset button to the LSP settings page when the default settings are changed. This is particularly helpful for users who change their default LSP and want to change back to the defaults.
With no settings changed:
![Simulator Screenshot - iPad Pro (12 9-inch) (6th generation) - 2023-11-11 at 19 55 13](https://private-user-images.githubusercontent.com/1878621/282272146-e326e0b5-4dbc-44a5-9346-a59a87621f08.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyMjQxNTIsIm5iZiI6MTcyNTIyMzg1MiwicGF0aCI6Ii8xODc4NjIxLzI4MjI3MjE0Ni1lMzI2ZTBiNS00ZGJjLTQ0YTUtOTM0Ni1hNTlhODc2MjFmMDgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDFUMjA1MDUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTI4Yjc4MTQzMDJjYWVmYWY3Y2I3Y2ZkMWI3ZTE1NTlhYjc5YjIxZjkxNGU2NTRkNDcwMWU4N2FmOTViMDQ0YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.kMbPYmPf7NsCD2iiUdEHm534E1P9Ipkatiu4_M1O91E)
With settings changed:
![Simulator Screenshot - iPad Pro (12 9-inch) (6th generation) - 2023-11-11 at 19 55 20](https://private-user-images.githubusercontent.com/1878621/282272150-ec04d7b3-d3c7-4ef1-9a57-fdb95e5f6f67.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyMjQxNTIsIm5iZiI6MTcyNTIyMzg1MiwicGF0aCI6Ii8xODc4NjIxLzI4MjI3MjE1MC1lYzA0ZDdiMy1kM2M3LTRlZjEtOWE1Ny1mZGI5NWU1ZjZmNjcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDFUMjA1MDUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmIxNjYzZDY4MTdhMmU5ZGE3MjgzYTc2NTM3ODkzYWU5NWMzNDNjYmUyYWI2OGM0NWU1YzFkNTE2OWQxZGZmNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.sDCeEcunbsbDtvOTyyfmKUGdte0l2VCG_n6-yTn1qi0)
This pull request is categorized as a:
Checklist
yarn run tsc
and made sure my code compiles correctlyyarn run lint
and made sure my code didn’t contain any problematic patternsyarn run prettier
and made sure my code is formatted correctlyyarn run test
and made sure all of the tests passTesting
If you modified or added a utility file, did you add new unit tests?
I have tested this PR on the following platforms (please specify OS version and phone model/VM):
I have tested this PR with the following types of nodes (please specify node version and API version where appropriate):
Locales
Third Party Dependencies and Packages
yarn
after this PR is merged inpackage.json
andyarn.lock
have been properly updatedOther: