File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ async function runHandler(options?: StatementInfo) {
305
305
306
306
if ( statementDetail . qualifier === `cl` ) {
307
307
// TODO: handle noUi
308
- if ( options . noUi ) {
308
+ if ( statementDetail . noUi ) {
309
309
setCancelButtonVisibility ( true ) ;
310
310
const command = statementDetail . content . split ( ` ` ) [ 0 ] . toUpperCase ( ) ;
311
311
@@ -325,7 +325,7 @@ async function runHandler(options?: StatementInfo) {
325
325
326
326
} else if ( [ `statement` , `update` ] . includes ( statementDetail . qualifier ) ) {
327
327
// If it's a basic statement, we can let it scroll!
328
- if ( options . noUi ) {
328
+ if ( statementDetail . noUi ) {
329
329
setCancelButtonVisibility ( true ) ;
330
330
chosenView . setLoadingText ( `Running SQL statement... (${ possibleTitle } )` , false ) ;
331
331
await JobManager . runSQL ( statementDetail . content , undefined , 1 ) ;
@@ -461,12 +461,12 @@ async function runHandler(options?: StatementInfo) {
461
461
vscode . window . showErrorMessage ( errorText ) ;
462
462
}
463
463
464
- if ( options . noUi ) {
464
+ if ( statementDetail . noUi ) {
465
465
throw new Error ( errorText ) ;
466
466
}
467
467
}
468
468
469
- if ( options . noUi ) {
469
+ if ( statementDetail . noUi ) {
470
470
setCancelButtonVisibility ( false ) ;
471
471
}
472
472
You can’t perform that action at this time.
0 commit comments