Skip to content

Commit

Permalink
Closes mtxr#124. quick pick not showing options if no connection active
Browse files Browse the repository at this point in the history
  • Loading branch information
mtxr committed Feb 4, 2019
1 parent 4cc734f commit 641421a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## v0.16

### v0.16.7
- **Fixes**
- ***Connections***: quick pick not showing options if no connection active. Issue #124

### v0.16.6
- **Fixes**
- ***Connections***: Error while connecting => `toString() of undefined`
Expand Down
2 changes: 2 additions & 0 deletions packages/extension/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ namespace SQLTools {

const availableConns = connections.filter(c => onlyActive ? c.isConnected : true);

if (availableConns.length === 0 && onlyActive) return connectionMenu();

if (availableConns.length === 1) return availableConns[0];

const sel = (await quickPick(availableConns.map((c) => {
Expand Down

0 comments on commit 641421a

Please sign in to comment.