-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup/connection_manager_api #1975
Conversation
Signed-off-by: worksofliam <[email protected]>
Signed-off-by: worksofliam <[email protected]>
Signed-off-by: worksofliam <[email protected]>
Signed-off-by: S. Julliand <[email protected]>
Signed-off-by: S. Julliand <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup @worksofliam ! Way cleaner than the raw accesses we used to do. I love it!
See the few comments I made, mostly code cleanup.
One thing to consider: since we update by index, there is a use case where the data can be saved on the wrong index:
- Open the settings of a connection and keep it opened
- Sort the connections browser
- Save the opened settings
Since the indexes were changed while sorting, the index kept by the settings editor is not the right one anymore.
I admit it's an edge case...but if I thought of it, someone else will.
So maybe we should set a context value while the webview is opened to prevent the sort and rename actions from being executed.
Signed-off-by: worksofliam <[email protected]>
Signed-off-by: worksofliam <[email protected]>
Signed-off-by: worksofliam <[email protected]>
Signed-off-by: worksofliam <[email protected]>
Signed-off-by: worksofliam <[email protected]>
Signed-off-by: worksofliam <[email protected]>
Signed-off-by: worksofliam <[email protected]>
@sebjulliand Let me look into how to solve this problem. Should have a fix for it by the end of the week. Thanks for your review! |
@sebjulliand Sorry this took SO long. I went ahead and used |
Signed-off-by: worksofliam <[email protected]>
@worksofliam I'll fix a small issue here with |
Signed-off-by: Seb Julliand <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@worksofliam works like a charm! Brilliant cleanup!
Just see my last comment about disabling more commands to avoid potential issues and then we'll be good to go!
Signed-off-by: worksofliam <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sebjulliand I went ahead with your suggestion, and some other commands also. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about disabling "code-for-ibmi.showAdditionalSettings" and "code-for-ibmi.showLoginSettings"; it doesn't seem to be risky to open multiple editors (sorry...)
Signed-off-by: worksofliam <[email protected]>
@sebjulliand Updated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved and merged! 😎
Changes
Replaces raw access of
connections
setting and password context with aConnectionManager
namespace.How to test this PR
Checklist
console.log
s I added