File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 51
51
"properties" : {
52
52
"vscode-db2i.validator" : {
53
53
"type" : " boolean" ,
54
- "description" : " Enable/disable the SQL validator" ,
54
+ "description" : " Enable the SQL validator" ,
55
55
"default" : false
56
56
},
57
+ "vscode-db2i.scrollingResultSet" : {
58
+ "type" : " boolean" ,
59
+ "description" : " Enable scrolling result sets for basic SELECT statements." ,
60
+ "default" : true
61
+ },
57
62
"vscode-db2i.pageSize" : {
58
63
"type" : " number" ,
59
64
"description" : " Page size for Schema browser" ,
60
- "default" : 100
65
+ "default" : 500
61
66
}
62
67
}
63
68
},
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const vscode = require(`vscode`);
3
3
const csv = require ( `csv/sync` ) ;
4
4
5
5
const getInstance = require ( `../../base` ) ;
6
+ const Configuration = require ( "../../configuration" ) ;
6
7
const html = require ( `./html` ) ;
7
8
8
9
class ResultSetPanelProvider {
@@ -157,7 +158,8 @@ exports.initialise = (context) => {
157
158
} ) ;
158
159
159
160
} else {
160
- if ( statement . type === `statement` && this . isBasicStatement ( statement . content ) ) {
161
+ const scrollingEnabled = Configuration . get ( `scrollingResultSet` ) ;
162
+ if ( scrollingEnabled && statement . type === `statement` && this . isBasicStatement ( statement . content ) ) {
161
163
// If it's a basic statement, we can let it scroll!
162
164
resultSetProvider . setScrolling ( statement . content ) ;
163
165
You can’t perform that action at this time.
0 commit comments