Skip to content

vscode: exclude .patch files from trimTrailingWhitespace - #30549

Merged
BKPepe merged 1 commit into
openwrt:masterfrom
vidplace7:vscode-patch-corruption
Sep 17, 2026
Merged

BKPepe merged 1 commit into
openwrt:masterfrom
vidplace7:vscode-patch-corruption

Conversation

@vidplace7

Copy link
Copy Markdown
Contributor

📦 Package Details

Maintainer: @BKPepe

Description:
Editing .patch files containing unmodified newlines (represented by a single space) in vscode results in a dirty patch as these spaces are stripped upon save.

Set trimTrailingWhitespace = false for diff-language files (.patch) in VS Code.


🧪 Run Testing Details

N/A (IDE-only change)

  • OpenWrt Version:
  • OpenWrt Target/Subtarget:
  • OpenWrt Device:

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

Editing .patch files containing unmodified newlines
(represented by a single space) in vscode results in a dirty patch
as these spaces are stripped.

Set trimTrailingWhitespace = false for diff-language files (.patch)

Signed-off-by: Austin Lane <vidplace7@gmail.com>
@vidplace7
vidplace7 force-pushed the vscode-patch-corruption branch from f9e90dc to ef1215d Compare September 17, 2026 00:23
@vidplace7 vidplace7 changed the title .vscode: Exclude diff (.patch) files from trimTrailingWhitespace vscode: exclude .patch files from trimTrailingWhitespace Sep 17, 2026
@danielfdickinson

Copy link
Copy Markdown
Contributor

This has bitten me a few times as well. Would like to see this merged.

@BKPepe
BKPepe merged commit 8c29bd7 into openwrt:master Sep 17, 2026
11 of 14 checks passed
@vidplace7
vidplace7 deleted the vscode-patch-corruption branch September 17, 2026 10:44
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.

3 participants