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

Connections pane disconnected state #2810

Merged
merged 11 commits into from
Apr 30, 2024
46 changes: 46 additions & 0 deletions extensions/positron-connections/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,34 @@
"command": "positron.connections.refresh",
"title": "%commands.refresh.title%",
"icon": "$(refresh)"
},
{
"command": "positron.connections.removeFromHistory",
"title": "%commands.removeFromHistory.title%",
"icon": "$(trash)"
},
{
"command": "positron.connections.reopenConnection",
"title": "%commands.reopenConnection.title%",
"icon": "$(open-preview)"
},
{
"command": "positron.connections.copyCodeToClipboard",
"title": "%commands.copyCodeToClipboard.title%",
"icon": "$(clippy)"
},
{
"command": "positron.connections.clearConnectionsHistory",
"title": "%commands.clearConnectionsHistory.title%",
"icon": "$(clear-all)"
}
],
"menus": {
"view/title": [
{
"command": "positron.connections.clearConnectionsHistory"
}
],
"view/item/context": [
{
"command": "positron.connections.closeConnection",
Expand All @@ -76,6 +101,27 @@
"command": "positron.connections.refresh",
"group": "inline",
"when": "viewItem == database"
},
{
"command": "positron.connections.removeFromHistory",
"group": "inline",
"when": "viewItem =~ /disconnected/"
},
{
"command": "positron.connections.reopenConnection",
"group": "inline",
"when": "viewItem =~ /disconnected-hasCode/"
},
{
"command": "positron.connections.reopenConnection",
"group": "code",
"when": "viewItem =~ /disconnected-hasCode/",
"contextualTitle": "Connect to database"
},
{
"command": "positron.connections.copyCodeToClipboard",
"when": "viewItem =~ /disconnected-hasCode/",
"group": "code"
}
]
}
Expand Down
6 changes: 5 additions & 1 deletion extensions/positron-connections/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
"commands.previewTable.title": "Preview Table",
"commands.previewTable.category": "Connections",
"commands.closeConnection.title": "Close Connection",
"commands.refresh.title": "Refresh connection"
"commands.refresh.title": "Refresh connection",
"commands.removeFromHistory.title": "Remove connection from history",
"commands.reopenConnection.title": "Execute connection code in the console",
"commands.copyCodeToClipboard.title": "Copy connection code to clipboard",
"commands.clearConnectionsHistory.title": "Clear connections history"
}
Loading
Loading