File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 135
135
}
136
136
}
137
137
},
138
+ {
139
+ "id" : " vscode-db2i.codegen" ,
140
+ "title" : " Code generation" ,
141
+ "properties" : {
142
+ "vscode-db2i.codegen.rpgSymbolicNameSource" : {
143
+ "type" : " string" ,
144
+ "order" : 0 ,
145
+ "description" : " Descriptor to use for RPG symbolic names in data structure" ,
146
+ "default" : " Name" ,
147
+ "enum" : [
148
+ " Name" ,
149
+ " Label"
150
+ ],
151
+ "enumDescriptions" : [
152
+ " Use the column name" ,
153
+ " Use the column label\n 'Extended metadata' must be set to true in the JDBC configuration"
154
+ ]
155
+ }
156
+ }
157
+ },
138
158
{
139
159
"id" : " vscode-db2i.visualExplain" ,
140
160
"title" : " Visual Explain" ,
Original file line number Diff line number Diff line change 25
25
"default" : false
26
26
}
27
27
}
28
+ },
29
+ {
30
+ "id" : " vscode-db2i.codegen" ,
31
+ "title" : " Code generation" ,
32
+ "properties" : {
33
+ "vscode-db2i.codegen.rpgSymbolicNameSource" : {
34
+ "type" : " string" ,
35
+ "order" : 0 ,
36
+ "description" : " Descriptor to use for RPG symbolic names in data structure" ,
37
+ "default" : " Name" ,
38
+ "enum" : [
39
+ " Name" ,
40
+ " Label"
41
+ ],
42
+ "enumDescriptions" : [
43
+ " Use the column name" ,
44
+ " Use the column label\n 'Extended metadata' must be set to true in the JDBC configuration"
45
+ ]
46
+ }
47
+ }
28
48
}
29
49
],
30
50
"views" : {
Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ async function runHandler(options?: StatementInfo) {
391
391
let content = `**free\n\n`
392
392
+ `// statement: ${ statementDetail . content } \n\n`
393
393
+ `// Row data structure\n`
394
- + queryResultToRpgDs ( result , Configuration . get ( `resultsets.columnHeadings ` ) ) ;
394
+ + queryResultToRpgDs ( result , Configuration . get ( `codegen.rpgSymbolicNameSource ` ) ) ;
395
395
const textDoc = await vscode . workspace . openTextDocument ( { language : 'rpgle' , content } ) ;
396
396
await vscode . window . showTextDocument ( textDoc ) ;
397
397
chosenView . setLoadingText ( `RPG data structure generated.` , false ) ;
You can’t perform that action at this time.
0 commit comments