vscode-ibmi
vscode-ibmi copied to clipboard
Update connection's configuration before saving it
Changes
This PR makes sure the connection's configuration gets updated before it gets saved, so the functions triggered by onCodeForIBMiConfigurationChange who access the current configuration (i.e. using instance.getConfig()) gets the updated configuration (and not the one before it gets updated).
How to test this PR
- Open the connection settings
- Got to the Source Code tab
- Change the
Read only modecheckbox
- [ ] Without the PR: the connection's icon in the status bar doesn't get update to reflect the read only mode state. It updates if another the settings are re-opened and saved again.
- [x] With the PR: the icon gets updated immediately after the settings are saved.
Checklist
- [x] have tested my change