Skip to content

Commit

Permalink
Merge pull request #1150 from chrjorgensen/feature/quick-connect
Browse files Browse the repository at this point in the history
Add Quick Connect
  • Loading branch information
chrjorgensen authored Apr 11, 2023
2 parents c2f6c41 + dc67986 commit 8f25b60
Show file tree
Hide file tree
Showing 7 changed files with 280 additions and 214 deletions.
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 @@ -1525,6 +1530,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 @@ -1732,6 +1741,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)
}
}

Expand Down
Loading

0 comments on commit 8f25b60

Please sign in to comment.