zowe / zlux

The top-level superproject for zLUX. zLUX includes the Zowe Desktop framework in addition to several built-in apps and an example server implementation.
Eclipse Public License 2.0
39 stars 42 forks source link

How to keep leading spaces in editor? #844

Closed Martin-Zeithaml closed 2 years ago

Martin-Zeithaml commented 2 years ago

I am not seeing leading spaces when open a member (there are missing 2 spaces before say). Is this a bug or some setting is missing? image

The language REXX was automatically detected. The same behavior for JCL too.

1000TurquoisePogs commented 2 years ago

Can you check the network request associated with opening the dataset to see if your example has missing spaces in the rest api or if it is just the editor doing it wrong? the output is organized into an array of strings for each row.

Martin-Zeithaml commented 2 years ago

Records look good: image

Martin-Zeithaml commented 2 years ago

I have modified this line, replace trim with trimEnd and got the expected result:

image

It seems, that the uss files are kept (with whitespaces) and the members were trimmed.

If no objection (I don't see any reason for trimming leading whitespace), I will fix this.

Martin-Zeithaml commented 2 years ago

Fixed in PR280 and PR281.