Skip to content

chore(oomph): pin the workspace line delimiter to LF#1478

Open
joaodinissf wants to merge 1 commit into
dsldevkit:masterfrom
joaodinissf:chore/oomph-workspace-lf
Open

chore(oomph): pin the workspace line delimiter to LF#1478
joaodinissf wants to merge 1 commit into
dsldevkit:masterfrom
joaodinissf:chore/oomph-workspace-lf

Conversation

@joaodinissf

Copy link
Copy Markdown
Collaborator

What

Adds one Oomph PreferenceTask to the DDK Eclipse product setup: /instance/org.eclipse.core.runtime/line.separator = LF, so every provisioned workspace starts with a Unix line delimiter workspace-wide. (The value is an XML character reference, 
, so XML attribute normalization preserves the newline.)

Why

This closes the last platform-dependent line-ending default. The repo already enforces LF at every other layer: .gitattributes + the line-endings CI check (storage/checkout), project-scoped line.separator settings linked from ddk-configuration (#1413), LF from the MWE2 code-generation workflows (#1413), and deterministic LF from the headless generation pipelines (#1477). The remaining hole: on a fresh Windows workspace the Eclipse workspace preference falls back to the platform separator (CRLF) — so files created outside the project-scoped settings, and IDE-side Xtext generation resolving the workspace preference, can still be written CRLF and churn against the LF checkout (rewrites → rebuild pressure → the Windows build-performance symptoms).

With this task, a fresh Oomph-provisioned DDK workspace is LF end-to-end: storage, checkout, headless generation, IDE generation, and new files.

Verification

  • xmllint --noout passes on the edited setup.
  • The task follows the existing per-node CompoundTask structure in DDKEclipse.setup (same pattern as the org.eclipse.core.resources and org.eclipse.ui.editors tasks).
  • Configuration-only change; no build impact.

🤖 Generated with Claude Code

The repository stores and checks out LF everywhere (.gitattributes,
line-endings CI check, project-scoped line.separator settings), and the
generation pipelines emit LF deterministically. The one remaining
platform-dependent default is the workspace-level Eclipse preference: on a
fresh Windows workspace, "New text file line delimiter" falls back to the
platform separator (CRLF), so anything created outside the project-scoped
settings — and any Xtext IDE generation resolving the workspace preference —
can still churn against the LF checkout.

Provision /instance/org.eclipse.core.runtime/line.separator = "\n" in the
Oomph product setup so every DDK Eclipse starts with a Unix line delimiter
workspace-wide. The value is an XML character reference so attribute
normalization preserves the newline.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@joaodinissf
joaodinissf marked this pull request as ready for review July 23, 2026 20:21
@joaodinissf
joaodinissf requested a review from rubenporras July 23, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant