✅ We are removing SEU colour support support in 3.0.0 ✅ #2057
Replies: 3 comments 14 replies
-
You can easily remove SEU colour codes from source members by creating and running a SQL procedure - for more information, see this comment. |
Beta Was this translation helpful? Give feedback.
-
Despite the strong consensus that VS Code should not attempt to emulate 5250 behavior when encountering attribute bytes, there is still a sense in which I believe they need to be "supported", which is: Since they are a reality in existing codebases, there should be some sensible defined handling of them. Some issues:
So, we're already seemingly close to supporting (ii). I hope it is not too hard to fix. Incidentally, this procedure is also not quite right. I don't know why some of the possible attribute byte values were left out of the TRANSLATE operation. |
Beta Was this translation helpful? Give feedback.
-
As @JDubbTX points out, if this feature goes away, so be it. I personally find that folks that color tend to over-color to the point of dramatically reducing readability. However, every once in awhile, coloring is used sparingly and has a very impactful effect. That said, as others have pointed out, simply opening and re-saving a member should not change 1-byte of the source code ... including the 5250 display attributes. So, can you please clarify what removal of support really means? Are the 5250 display attributes going to be stripped from source? If not, will the full range of all display attribute codes (x20 - x3F and xA0-xBF) be preserved? If the codes are not being stripped and not being preserved, will you add a warning about codes being altered? |
Beta Was this translation helpful? Give feedback.
-
By the time Code for IBM i 3.0.0 releases, we are planning on removing SEU colour support.
This is what it looked like.
We are still sometime away from 3.0.0. If you take a look at our milestones, there is a planned 2.11.0 release which still has some time to go. 3.0.0 will likely be sometime this year (2024). It also means that any new issues that arise with colour support will be closed, and going forward suggest disabling SEU colour support in the VS Code settings.
This means when you open up source code in Visual Studio Code, instead of the colours appearing, you will instead see the character equivalent of the byte.
You can track the issue here: #2056
Why are we doing this?
As time has gone by, SEU is really one of the only editors that has support for a colour system like this. We are not trying to be like SEU, so therefore we don't feel that it is worth the time maintaining such a system in Code for IBM i.
To fit in better with the general development ecosystem, as well as the move to UTF8, colour bytes (which is typically ebcdic) just don't fit in well.
As @JonFP pointed out:
What are your options?
Leave feedback
If you are affected by this change, you are welcome to leave a comment here. We also welcome comments about how users can migrate away from SEU colors (e.g. stripped out the bytes to remove them).
Beta Was this translation helpful? Give feedback.
All reactions