vscode-ibmi
vscode-ibmi copied to clipboard
Got tabs replaced by literal '\t' when saving
Describe the bug
When saving tab characters back to the IBM i, the string '\t'
(that is, the two-character string composed of a literal backslash and a literal 't') get written into the source member.
To Reproduce
- Open a source member in VS Code.
- Set indentation to "Indent Using Tabs".
- Insert a tab.
- Save.
Expected behavior A tab character in the appropriate CCSID gets written to the source member.
Screenshots
SEU before editing:
Open in VS Code:
Setting indent mode:
Code containing tab:
SEU after saving:
Environment (please complete the following information):
- Code for IBM i v1.6.8
- IBM i OS version 7.4
Additional context I realize you would rarely want actual tabs in your code, especially if it will also be worked on with SEU. But if the tabs are already there in the source member on the IBM i, VS Code opens them as tabs, and they need to make the round-trip intact.