Skip to content

Empty lines are automatically removed when saving SAS code via VS Code (IOM mode) #1769

@fAmkOg

Description

@fAmkOg

Describe the bug

I am using the SAS VS Code extension and connecting to a SAS server running on Linux via IOM mode.
When I save a SAS source code file, all empty lines are automatically trimmed, regardless of my VS Code editor settings.

This behavior occurs consistently and ignores VS Code configurations such as:

  • files.trimTrailingWhitespace
  • files.insertFinalNewline
  • editor.trimAutoWhitespace

The issue doesn't occur when connecting through SAS EG client.

Steps to reproduce

  1. Connect to SAS server through IOM mode
  2. Create/Edit any code/txt file with empty lines.
  3. Save and close.
  4. Reopen the file the empty lines are gone.

SAS code (if applicable)

Expected behavior

Empty lines should be preserved when saving the file.

Screenshots

No response

Client OS

Windows 11

Extension version

1.18.0

SAS version

SAS 9.4

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions