The code is expecting there to be a .editorconfig setting for tab_width when indent_style = tab as the tab_width value is copied into indent_size. It seems strange to set up indentation in .editorconfig that relies on tabs but leave tab_width undefined.
The code is expecting there to be a .editorconfig setting for
tab_widthwhenindent_style = tabas thetab_widthvalue is copied intoindent_size. It seems strange to set up indentation in .editorconfig that relies on tabs but leave tab_width undefined.Fixed with [51a8f2].
Added a check for when
indent_style = taband there is notab_widthto use the value ofprops["tabwidth"]or "8" if not set.Added a catch and diagnostic for stoi failure in case there are other problems.
Related
Commit: [51a8f2]