Skip to content
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

Add Quick Connect #1150

Merged
merged 12 commits into from
Apr 11, 2023
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,11 @@
"category": "IBM i",
"icon": "$(remote)"
},
{
"command": "code-for-ibmi.connectToAndReload",
"title": "Connect and Reload Server Settings",
"category": "IBM i"
},
{
"command": "code-for-ibmi.refreshConnections",
"title": "Refresh Connections",
Expand Down Expand Up @@ -1520,6 +1525,10 @@
"command": "code-for-ibmi.connectToPrevious",
"when": "never"
},
{
"command": "code-for-ibmi.connectToAndReload",
"when": "never"
},
{
"command": "code-for-ibmi.disconnect",
"when": "code-for-ibmi:connected"
Expand Down Expand Up @@ -1727,6 +1736,11 @@
"when": "view == connectionBrowser && viewItem == server",
"group": "inline"
},
{
"command": "code-for-ibmi.connectToAndReload",
"when": "view == connectionBrowser && viewItem == server",
"group": "3_connect@1"
},
{
"command": "code-for-ibmi.moveLibraryUp",
"when": "view == libraryListView && viewItem == library",
Expand Down
4 changes: 3 additions & 1 deletion src/api/Configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export namespace ConnectionConfiguration {
debugUpdateProductionFiles: boolean;
debugEnableDebugTracing: boolean;
readOnlyMode: boolean;
quickConnect: boolean;
[name: string]: any;
}

Expand Down Expand Up @@ -119,7 +120,8 @@ export namespace ConnectionConfiguration {
debugIsSecure: (parameters.debugIsSecure === true),
debugUpdateProductionFiles: (parameters.debugUpdateProductionFiles === true),
debugEnableDebugTracing: (parameters.debugEnableDebugTracing === true),
readOnlyMode: (parameters.readOnlyMode === true)
readOnlyMode: (parameters.readOnlyMode === true),
quickConnect: (parameters.quickConnect === true || parameters.quickConnect === undefined)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this and it shows that Quick Connect will be on by default.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@worksofliam Yeah, Quick Connect was changed to be the default behavior with the setting available for the user to opt-out - per our discussion two weeks ago. Hope this is okay?

}
}

Expand Down
Loading