File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 178178 "type" : " boolean" ,
179179 "default" : true ,
180180 "description" : " Convert numeric and boolean data fields when parsing CSV data. Disable this option to speed up large datasets parsing and loading."
181+ },
182+ "tabular.data.createTableSchemaConfig" : {
183+ "type" : " boolean" ,
184+ "default" : true ,
185+ "description" : " Create table *.schema.json configuration file when parsing CSV data."
181186 }
182187 }
183188 }
Original file line number Diff line number Diff line change 33 */
44export enum Settings {
55 dataPageSize = 'pageSize' ,
6- dynamicDataTyping = 'parser.dynamicTyping'
6+ dynamicDataTyping = 'parser.dynamicTyping' ,
7+ createTableSchemaConfig = 'createTableSchemaConfig'
78}
Original file line number Diff line number Diff line change @@ -436,8 +436,7 @@ export class TableView {
436436 * @param tableSchema Table schema object to save.
437437 */
438438 private async saveTableSchema ( tableSchema : any ) : Promise < void > {
439- if ( tableSchema ) {
440- // TODO: add tabular.data.saveTableSchema boolean setting check
439+ if ( tableSchema && this . createTableSchemaConfig ) {
441440 // save updated table schema from tableschema infer call
442441 fileUtils . createJsonFile ( this . _fileInfo . tableSchemaFilePath , tableSchema ) ;
443442 }
@@ -578,6 +577,13 @@ export class TableView {
578577 return < boolean > config . get ( Settings . dynamicDataTyping ) ;
579578 }
580579
580+ /**
581+ * Gets create table schema configuration setting for CSV data parsing.
582+ */
583+ get createTableSchemaConfig ( ) : boolean {
584+ return < boolean > config . get ( Settings . createTableSchemaConfig ) ;
585+ }
586+
581587 /**
582588 * Creates webview html content for the webview panel display.
583589 *
You can’t perform that action at this time.
0 commit comments