File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,10 @@ export function initialise(context: vscode.ExtensionContext) {
147
147
}
148
148
149
149
async function runHandler ( options ?: StatementInfo ) {
150
+ if ( options === undefined || options . viewColumn === undefined ) {
151
+ await resultSetProvider . ensureActivation ( ) ;
152
+ }
153
+
150
154
// Options here can be a vscode.Uri when called from editor context.
151
155
// But that isn't valid here.
152
156
const optionsIsValid = ( options ?. content !== undefined ) ;
@@ -155,7 +159,6 @@ async function runHandler(options?: StatementInfo) {
155
159
vscode . commands . executeCommand ( 'vscode-db2i.dove.close' ) ;
156
160
157
161
if ( optionsIsValid || ( editor && editor . document . languageId === `sql` ) ) {
158
- await resultSetProvider . ensureActivation ( ) ;
159
162
let chosenView = resultSetProvider ;
160
163
161
164
const useWindow = ( title : string , column ?: ViewColumn ) => {
You can’t perform that action at this time.
0 commit comments