From 0c506fa47945cec40f172eae88736ac7cd9fb3fa Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Wed, 2 Dec 2026 18:18:43 +0800 Subject: [PATCH] style: format the Razor scanner and use spacing tokens in SVN working copies (#7505) Fixes pnpm format:check and the spacing-scale test on main: two for headers in the Razor scanner are formatted as oxfmt expects, and the SVN Working Copies panel uses --space-* tokens for its gaps (same values, no visible change). --- src/editor/core/cm/razor/scan.ts | 4 ++-- src/features/vcs/SvnWorkingCopies.module.css | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/editor/core/cm/razor/scan.ts b/src/editor/core/cm/razor/scan.ts index 3eb0c5661..cc2a512df 100644 --- a/src/editor/core/cm/razor/scan.ts +++ b/src/editor/core/cm/razor/scan.ts @@ -260,7 +260,7 @@ class Scanner { return end < 0 ? n : end + quotes; } if (!verbatim && quotes === 2) return j + 2; - for (j++; j < n; ) { + for (j++; j < n;) { const c = s[j]; if (verbatim) { if (c === '"') { @@ -304,7 +304,7 @@ class Scanner { const s = this.s, n = this.n; let depth = 0; - for (let i = start; i < n; ) { + for (let i = start; i < n;) { const c = s[i]; if (this.startsString(i)) { i = this.skipString(i); diff --git a/src/features/vcs/SvnWorkingCopies.module.css b/src/features/vcs/SvnWorkingCopies.module.css index f0acd132a..245f52bfe 100644 --- a/src/features/vcs/SvnWorkingCopies.module.css +++ b/src/features/vcs/SvnWorkingCopies.module.css @@ -22,7 +22,7 @@ .fields { display: grid; grid-template-columns: max-content 1fr; - gap: 2px 16px; + gap: var(--space-0-5) var(--space-4); margin: 0 0 6px; } .field { @@ -44,5 +44,5 @@ .actions { display: flex; flex-wrap: wrap; - gap: 4px 16px; + gap: var(--space-1) var(--space-4); }