Skip to content

Commit

Permalink
Fixes exporting failing. Closes #257
Browse files Browse the repository at this point in the history
  • Loading branch information
mtxr committed May 30, 2019
1 parent e393827 commit f1d5056
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/plugins/connection-manager/extension.ts
Expand Up @@ -175,6 +175,7 @@ export default class ConnectionManagerPlugin implements SQLTools.ExtensionPlugin
private ext_showOutputChannel = () => (<any>console).show();

private ext_saveResults = async (filetype: 'csv' | 'json', connId?: string) => {
connId = typeof connId === 'string' ? connId : undefined;
filetype = typeof filetype === 'string' ? filetype : undefined;
let mode: any = filetype || ConfigManager.defaultExportType;
if (mode === 'prompt') {
Expand Down
10 changes: 5 additions & 5 deletions packages/plugins/connection-manager/screens/provider.ts
Expand Up @@ -69,11 +69,11 @@ export default abstract class WebviewProvider<State = any> implements Disposable
this.panel.reveal(this.wereToShow, this.preserveFocus);
this.postMessage({ action: 'reset' });
this.setPreviewActiveContext(true);
if (process.env.NODE_ENV === 'development') {
setTimeout(() => {
commands.executeCommand('workbench.action.webview.openDeveloperTools');
}, 1000);
}
// if (process.env.NODE_ENV === 'development') {
// setTimeout(() => {
// commands.executeCommand('workbench.action.webview.openDeveloperTools');
// }, 1000);
// }
}

private onDidReceiveMessage = ({ action, payload, ...rest}) => {
Expand Down

0 comments on commit f1d5056

Please sign in to comment.