From 55836e1b4961c9d87df8503ec374e624c81d6bf6 Mon Sep 17 00:00:00 2001 From: Jaw <53564781+jaw52@users.noreply.github.com> Date: Wed, 28 Oct 2026 19:35:16 +0800 Subject: [PATCH] chore: Format the codebase with oxfmt and check formatting in CI (#135) Run oxfmt once over the whole repository (formatting only, no logic changes) and add `pnpm format:check` to the frontend CI job so unformatted code no longer builds up. `.oxfmtrc.json` now skips the generated theme docs, test fixtures and code blocks inside Markdown. Co-authored-by: jaw52 <53564781+jaw52@users.noreply.github.com> --- .github/workflows/ci.yml | 1 + .oxfmtrc.json | 19 +- README.md | 16 +- THIRD_PARTY_LICENSES.md | 3 +- docs/themes.md | 10 +- index.html | 13 +- package.json | 1 + perf/compare/README.md | 22 +- plugins/README.md | 58 ++--- public/splash.css | 63 +++++- src-tauri/capabilities/default.json | 6 +- src-tauri/capabilities/e2e.json | 12 +- src-tauri/tauri.conf.json | 8 +- src-tauri/tauri.dev.conf.json | 2 +- src/editor/api.ts | 22 +- src/editor/core/actions.ts | 181 ++++++++++++--- src/editor/core/backend.ts | 144 ++++++++++-- src/editor/core/clipboardHistory.test.ts | 16 +- src/editor/core/clipboardHistory.ts | 6 +- src/editor/core/cm/caretCommands.test.ts | 10 +- src/editor/core/cm/caretCommands.ts | 6 +- src/editor/core/cm/codeLens.test.ts | 4 +- src/editor/core/cm/codeLens.ts | 16 +- src/editor/core/cm/columnMode.test.ts | 6 +- src/editor/core/cm/columnMode.ts | 22 +- src/editor/core/cm/comments.ts | 19 +- src/editor/core/cm/distractionFree.test.ts | 6 +- src/editor/core/cm/editing.test.ts | 26 ++- src/editor/core/cm/editing.ts | 144 +++++++++--- src/editor/core/cm/find.test.ts | 5 +- src/editor/core/cm/find.ts | 27 ++- src/editor/core/cm/folding.ts | 31 ++- src/editor/core/cm/highlight.ts | 30 ++- src/editor/core/cm/indentGuides.ts | 5 +- src/editor/core/cm/lanes.ts | 11 +- src/editor/core/cm/languages.ts | 17 +- src/editor/core/cm/lines.ts | 19 +- src/editor/core/cm/prefs.test.ts | 14 +- src/editor/core/cm/prefs.ts | 67 ++++-- src/editor/core/cm/setup.ts | 52 ++++- src/editor/core/cm/smartKeys.test.ts | 20 +- src/editor/core/cm/smartKeys.ts | 24 +- src/editor/core/cm/stickyScroll.ts | 9 +- src/editor/core/cm/syntaxHighlight.test.ts | 10 +- src/editor/core/cm/theme.ts | 24 +- src/editor/core/cm/unwrap.test.ts | 12 +- src/editor/core/cm/unwrap.ts | 40 +++- src/editor/core/controller.test.ts | 15 +- src/editor/core/controller.ts | 23 +- src/editor/core/extras.ts | 7 +- src/editor/core/model/document.test.ts | 11 +- src/editor/core/model/document.ts | 59 ++++- src/editor/core/model/editHistory.ts | 3 +- src/editor/core/model/navHistory.ts | 4 +- src/editor/core/model/session.test.ts | 41 +++- src/editor/core/model/session.ts | 25 ++- src/editor/core/model/slot.ts | 30 ++- src/editor/core/model/tabs.ts | 50 ++++- src/editor/core/view/Banner.tsx | 4 +- src/editor/core/view/EditorArea.tsx | 16 +- src/editor/core/view/StatusItems.tsx | 7 +- src/editor/core/view/TextEditorHost.tsx | 4 +- src/editor/core/view/navBar.test.ts | 38 +++- src/editor/core/view/navChildren.test.tsx | 4 +- src/editor/core/virtual.test.ts | 33 +-- src/editor/lsp/Popups.test.tsx | 9 +- src/editor/lsp/actions.ts | 78 +++++-- src/editor/lsp/authorLens.ts | 4 +- src/editor/lsp/autoImport.ts | 4 +- src/editor/lsp/codeLens.ts | 10 +- src/editor/lsp/completion.test.ts | 12 +- src/editor/lsp/completionItems.ts | 10 +- src/editor/lsp/diagnostics.test.ts | 17 +- src/editor/lsp/diagnostics.ts | 27 ++- src/editor/lsp/docs.ts | 5 +- src/editor/lsp/features.test.ts | 49 +++- src/editor/lsp/fileReferences.ts | 12 +- src/editor/lsp/files.ts | 5 +- src/editor/lsp/format.ts | 31 ++- src/editor/lsp/hint.ts | 5 +- src/editor/lsp/inlay.test.ts | 4 +- src/editor/lsp/inlay.ts | 25 ++- src/editor/lsp/inplaceRename.test.ts | 11 +- src/editor/lsp/inplaceRename.ts | 41 +++- src/editor/lsp/inspectionWidget.ts | 22 +- src/editor/lsp/intentions.test.ts | 15 +- src/editor/lsp/intentions.ts | 63 ++++-- src/editor/lsp/navigation.ts | 26 ++- src/editor/lsp/positions.test.ts | 9 +- src/editor/lsp/positions.ts | 5 +- src/editor/lsp/rename.ts | 22 +- src/editor/lsp/semantic.ts | 7 +- src/editor/lsp/signature.test.ts | 37 ++- src/editor/lsp/signature.ts | 8 +- src/editor/lsp/spelling.test.ts | 25 ++- src/editor/lsp/spelling.ts | 6 +- src/editor/lsp/syntaxFallback.test.ts | 92 ++++++-- src/editor/lsp/syntaxFallback.ts | 25 ++- src/editor/lsp/tempHighlight.ts | 3 +- src/editor/lsp/theme.ts | 15 +- src/editor/lsp/typeInfo.ts | 5 +- src/editor/lsp/workspaceEdit.test.ts | 10 +- src/editor/lsp/workspaceEdit.ts | 9 +- src/editor/navigation/gotoTest.test.ts | 23 +- src/editor/navigation/gotoTest.ts | 24 +- src/editor/navigation/index.ts | 39 +++- src/editor/navigation/structureNav.test.ts | 23 +- src/editor/navigation/structureNav.ts | 19 +- src/editor/navigation/testNaming.test.ts | 30 ++- src/editor/navigation/testNaming.ts | 18 +- src/editor/refactor/catalog.ts | 26 ++- src/editor/refactor/index.ts | 9 +- src/editor/refactor/query.ts | 6 +- src/editor/refactor/refactorThis.test.ts | 42 +++- src/editor/refactor/refactorThis.ts | 35 ++- src/editor/refactor/safeDelete.test.ts | 77 +++++-- src/editor/refactor/safeDelete.ts | 17 +- src/editor/refactor/serverIntroduce.ts | 12 +- src/editor/structure/structure.test.ts | 20 +- src/features/agents/AgentsView.tsx | 4 +- src/features/agents/Composer.tsx | 4 +- src/features/agents/HomeEditor.tsx | 5 +- src/features/agents/SessionEditor.tsx | 81 +++++-- src/features/agents/agents.test.ts | 19 +- src/features/agents/composerModel.ts | 6 +- src/features/agents/conversation.test.ts | 12 +- src/features/agents/model.ts | 20 +- src/features/agents/store.ts | 23 +- src/features/analysis/analysis.test.ts | 5 +- src/features/analysis/cleanup.ts | 12 +- src/features/app/NewProject.tsx | 18 +- .../app/__tests__/invalidateCaches.test.tsx | 4 +- src/features/app/__tests__/newProject.test.ts | 6 +- src/features/app/__tests__/shell.test.tsx | 6 +- src/features/app/projectActions.ts | 18 +- src/features/app/title.ts | 6 +- src/features/build-tools/actions.test.tsx | 34 ++- src/features/build-tools/index.ts | 28 ++- src/features/build-tools/model.test.ts | 58 ++++- src/features/build-tools/model.ts | 63 +++++- src/features/build-tools/runAnything.ts | 18 +- src/features/build-tools/store.ts | 12 +- src/features/build/index.ts | 19 +- src/features/build/store.ts | 5 +- src/features/code-insight/ServerStatus.tsx | 5 +- src/features/code-insight/hierarchy.test.ts | 28 ++- src/features/code-insight/hierarchy.ts | 11 +- src/features/code-insight/ipc.ts | 27 ++- .../code-insight/problemsStore.test.ts | 4 +- src/features/code-insight/problemsStore.ts | 13 +- src/features/code-insight/servers.test.ts | 12 +- src/features/code-insight/servers.ts | 11 +- .../code-insight/syntaxUsages.test.ts | 34 ++- src/features/code-insight/syntaxUsages.ts | 8 +- .../code-insight/usageResults.test.ts | 17 +- src/features/code-insight/usages.ts | 9 +- src/features/code-insight/views.test.ts | 3 +- src/features/coverage/coverage.test.ts | 31 ++- src/features/coverage/executor.ts | 32 ++- src/features/coverage/index.ts | 6 +- src/features/coverage/model.ts | 22 +- src/features/coverage/store.ts | 9 +- src/features/database/database.test.ts | 55 ++++- src/features/database/objects.test.ts | 61 +++-- src/features/database/sql/analyze.ts | 3 +- src/features/database/sql/format.test.ts | 10 +- src/features/database/sql/format.ts | 42 +++- src/features/database/sql/params.ts | 6 +- src/features/database/sql/resolve.ts | 21 +- src/features/database/sql/sql.test.ts | 20 +- src/features/database/vendors.ts | 56 ++++- .../debugger/__tests__/hotswap.test.ts | 15 +- .../debugger/__tests__/launch.test.ts | 54 ++++- .../debugger/__tests__/smartStep.test.ts | 12 +- src/features/debugger/editor/execution.ts | 9 +- src/features/debugger/editor/smartStep.ts | 9 +- src/features/debugger/frames.ts | 3 +- src/features/debugger/hotswap.ts | 5 +- .../debugger/ui/DebugToolWindow.module.css | 2 +- src/features/github/PullRequestsView.tsx | 4 +- src/features/github/github.test.ts | 29 ++- src/features/github/index.ts | 9 +- src/features/github/model.ts | 45 +++- src/features/github/ops.ts | 57 ++++- src/features/github/store.ts | 48 +++- src/features/http-client/format.ts | 15 +- src/features/http-client/httpClient.test.ts | 19 +- src/features/http-client/store.ts | 6 +- src/features/libraries/index.ts | 3 +- src/features/libraries/libraries.test.ts | 12 +- src/features/macros/MacrosDialog.tsx | 9 +- src/features/macros/editorKeys.ts | 4 +- src/features/macros/index.ts | 29 +-- src/features/macros/model.test.ts | 5 +- src/features/macros/model.ts | 12 +- .../plugins/__tests__/plugins.test.tsx | 5 +- src/features/profiler/executor.ts | 23 +- src/features/profiler/index.ts | 3 +- src/features/profiler/model.ts | 6 +- src/features/profiler/profiler.test.ts | 13 +- src/features/profiler/store.ts | 5 +- .../project-tree/ProjectView.test.tsx | 9 +- src/features/project-tree/ProjectView.tsx | 21 +- .../project-tree/RefactoringPreview.tsx | 16 +- src/features/project-tree/actions.ts | 6 +- src/features/project-tree/contextMenu.test.ts | 13 +- src/features/project-tree/contextMenu.ts | 41 +++- src/features/project-tree/extraRoots.test.ts | 14 +- .../project-tree/fileRefactor.test.tsx | 16 +- src/features/project-tree/fileRefactor.ts | 15 +- src/features/project-tree/fs.ts | 6 +- src/features/project-tree/model.test.ts | 12 +- src/features/project-tree/model.ts | 35 ++- src/features/project-tree/operations.ts | 31 ++- src/features/project-tree/packages.ts | 3 +- src/features/project-tree/roots.test.ts | 5 +- src/features/project-tree/selectIn.test.ts | 6 +- src/features/project-tree/store.ts | 35 ++- src/features/project-tree/viewModes.test.ts | 17 +- src/features/remote-dev/ConnectDialog.tsx | 11 +- src/features/run-anything/model.test.ts | 14 +- src/features/run-anything/model.ts | 8 +- src/features/run/ConfigChooser.tsx | 31 ++- src/features/run/ConfigForm.tsx | 5 +- src/features/run/ConsoleView.tsx | 39 +++- src/features/run/EditConfigsDialog.tsx | 4 +- src/features/run/TestTreeView.tsx | 17 +- src/features/run/configs.test.ts | 46 +++- src/features/run/configs.ts | 7 +- src/features/run/contextRun.test.ts | 18 +- src/features/run/contextRun.ts | 55 +++-- src/features/run/externalTools.ts | 12 +- src/features/run/index.ts | 17 +- src/features/run/java.test.ts | 11 +- src/features/run/javaDebug.ts | 3 +- src/features/run/navigate.ts | 15 +- src/features/run/producers.test.ts | 211 ++++++++++++++---- src/features/run/producers.ts | 98 ++++++-- src/features/run/runConfigTypes.test.tsx | 6 +- src/features/run/runGutter.ts | 12 +- src/features/run/runtimes.ts | 12 +- src/features/run/session.test.tsx | 7 +- src/features/run/store.ts | 104 +++++++-- src/features/run/targets.ts | 24 +- src/features/run/testing/cargo.ts | 3 +- src/features/run/testing/go.ts | 13 +- src/features/run/testing/jvm.ts | 8 +- src/features/run/testing/parsers.test.ts | 5 +- src/features/run/testing/pytest.ts | 4 +- src/features/run/types.ts | 61 +++-- src/features/run/workflow.test.ts | 16 +- .../scratch/__tests__/scratch.test.tsx | 18 +- src/features/scratch/index.ts | 9 +- src/features/scratch/model.ts | 13 +- .../search/__tests__/bookmarkPopups.test.tsx | 8 +- .../search/__tests__/bookmarks.test.ts | 16 +- .../search/__tests__/codePreview.test.tsx | 12 +- .../search/__tests__/controller.test.ts | 52 ++++- .../search/__tests__/dialogs.test.tsx | 6 +- .../search/__tests__/everywhereModel.test.ts | 146 ++++++++++-- .../search/__tests__/fileStructure.test.tsx | 5 +- .../search/__tests__/findPopup.test.tsx | 16 +- .../search/__tests__/findSession.test.ts | 24 +- .../search/__tests__/inherited.test.ts | 6 +- src/features/search/__tests__/outline.test.ts | 18 +- src/features/search/__tests__/query.test.ts | 6 +- src/features/search/__tests__/recent.test.ts | 51 ++++- .../search/__tests__/replaceFlow.test.ts | 26 ++- .../search/bookmarks/BookmarkPopups.tsx | 17 +- src/features/search/bookmarks/store.ts | 53 +++-- src/features/search/common/locations.ts | 5 +- src/features/search/common/open.ts | 19 +- src/features/search/common/textSearch.ts | 10 +- src/features/search/common/tracking.ts | 11 +- src/features/search/everywhere/controller.ts | 6 +- src/features/search/find/FindInFiles.tsx | 10 +- src/features/search/find/parts.tsx | 3 +- src/features/search/find/replaceFlow.ts | 6 +- src/features/search/index.ts | 5 +- src/features/search/recent/RecentPopups.tsx | 28 ++- src/features/search/recent/model.ts | 6 +- src/features/search/recent/store.ts | 9 +- .../search/structure/StructureView.tsx | 33 ++- src/features/search/structure/inherited.ts | 7 +- src/features/search/structure/outline.ts | 27 ++- src/features/search/structure/store.ts | 21 +- src/features/services/dialogs.tsx | 18 +- src/features/services/docker.tsx | 8 +- src/features/services/dockerGutter.ts | 22 +- src/features/services/index.ts | 40 +++- src/features/services/model.ts | 25 ++- src/features/services/ops.ts | 90 ++++++-- src/features/services/services.test.ts | 83 +++++-- src/features/services/store.ts | 68 +++++- .../settings/__tests__/inspections.test.ts | 10 +- .../settings/__tests__/languages.test.ts | 13 +- src/features/settings/appearanceRuntime.ts | 4 +- .../settings/pages/editor/codeStyle.tsx | 81 ++++--- src/features/settings/pages/editor/font.tsx | 33 ++- .../settings/pages/editor/general.tsx | 31 ++- .../settings/pages/editor/inspections.tsx | 11 +- .../templates/__tests__/editor.test.ts | 5 +- .../templates/__tests__/surrounders.test.ts | 15 +- src/features/templates/editor.ts | 25 ++- src/features/templates/emmet/model.ts | 4 +- .../templates/files/NewFileDialog.tsx | 7 +- src/features/templates/files/create.ts | 5 +- src/features/templates/files/model.ts | 2 +- src/features/templates/live/surrounders.ts | 5 +- src/features/templates/popup/Chooser.tsx | 7 +- .../templates/settings/FileTemplatesPage.tsx | 16 +- src/features/terminal/TerminalView.tsx | 6 +- src/features/terminal/index.ts | 7 +- src/features/terminal/session.ts | 47 +++- src/features/terminal/terminal.test.ts | 73 +++++- src/features/terminal/theme.ts | 15 +- src/features/todo/TodoView.tsx | 22 +- src/features/todo/highlight.ts | 5 +- src/features/todo/store.ts | 15 +- src/features/todo/todo.test.ts | 7 +- src/features/tools/missing.ts | 8 +- src/features/vcs/DiffEditor.tsx | 77 +++++-- src/features/vcs/RevisionChooser.tsx | 13 +- .../vcs/__tests__/changelists.test.ts | 12 +- src/features/vcs/__tests__/conflicts.test.ts | 8 +- .../vcs/__tests__/decorations.test.ts | 12 +- src/features/vcs/__tests__/gitOps.test.ts | 11 +- src/features/vcs/__tests__/hunks.test.ts | 13 +- src/features/vcs/__tests__/workflow.test.ts | 4 +- src/features/vcs/blame.ts | 6 +- src/features/vcs/changelists.ts | 17 +- src/features/vcs/changes.ts | 12 +- src/features/vcs/commitChecks.tsx | 4 +- src/features/vcs/compare.tsx | 4 +- src/features/vcs/diffAnnotations.ts | 6 +- src/features/vcs/diffControls.ts | 5 +- src/features/vcs/gitMenuDialogs.tsx | 61 ++++- src/features/vcs/hunks.ts | 10 +- src/features/vcs/index.ts | 12 +- src/features/vcs/localHistoryActions.ts | 6 +- src/features/vcs/logOptions.ts | 3 +- src/features/vcs/model.ts | 5 +- src/features/vcs/rebasePlan.ts | 18 +- src/features/vcs/remoteUi.tsx | 7 +- src/features/viewers/index.ts | 6 +- src/features/viewers/markdown/mermaid.test.ts | 18 +- src/features/web/index.ts | 9 +- src/features/welcome/ProjectPopup.tsx | 3 +- src/platform/colorScheme.test.ts | 15 +- src/platform/colorScheme.ts | 95 ++++++-- src/platform/context.ts | 16 +- src/platform/editorSettings.ts | 17 +- src/platform/inspectionControls.test.ts | 47 +++- src/platform/ipc.ts | 5 +- src/platform/keymap.test.ts | 33 ++- src/platform/keymap.ts | 17 +- src/platform/keymaps/navExtras.test.ts | 4 +- src/platform/languageSettings.ts | 28 ++- src/platform/projectRoots.test.ts | 5 +- src/platform/remoteSettings.ts | 6 +- src/platform/virtualDocs.ts | 17 +- src/platform/workflowSettings.test.ts | 6 +- src/platform/workflowSettings.ts | 12 +- src/styles/global.css | 62 +++-- src/ui/Dialog.test.tsx | 49 +++- src/ui/Input.tsx | 12 +- src/ui/List.tsx | 11 +- src/ui/Tabs.tsx | 13 +- src/ui/icons.tsx | 10 +- src/ui/index.ts | 12 +- src/workbench/MainToolbarDialog.tsx | 6 +- src/workbench/Notifications.tsx | 6 +- src/workbench/contributions.ts | 9 +- src/workbench/mainToolbar.ts | 23 +- src/workbench/quickSwitch.ts | 13 +- src/workbench/theme.ts | 3 +- src/workbench/toolwindows/actions.ts | 24 +- src/workbench/toolwindows/layouts.test.ts | 5 +- templates/theme-plugin/README.md | 8 +- vite.config.ts | 5 +- 380 files changed, 6409 insertions(+), 1634 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 958afa288..5aed379ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,6 +81,7 @@ jobs: - run: pnpm install --frozen-lockfile - run: pnpm typecheck - run: pnpm lint + - run: pnpm format:check - run: pnpm test - run: pnpm build diff --git a/.oxfmtrc.json b/.oxfmtrc.json index e80c8f349..758635b69 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -5,5 +5,22 @@ "singleQuote": false, "trailingComma": "all", "sortPackageJson": false, - "ignorePatterns": ["dist", "target", "src/bindings.ts", "pnpm-lock.yaml", "**/*.toml"] + "ignorePatterns": [ + "dist", + "target", + "src/bindings.ts", + "docs/plugins/themes.md", + "pnpm-lock.yaml", + "**/*.toml", + "fixtures", + "crates/**/tests/fixtures" + ], + "overrides": [ + { + "files": ["**/*.md"], + "options": { + "embeddedLanguageFormatting": "off" + } + } + ] } diff --git a/README.md b/README.md index 0a424820c..af53c1de2 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,14 @@ for 60+ languages. Builds for macOS, Windows and Linux. Opening [freqtrade](https://github.com/freqtrade/freqtrade) (Python, ~770 files) with warm caches, median of 5 runs: -| | OpenIDEA | IntelliJ IDEA 2026.2.3 | -|---|---|---| -| Window with the project | **0.9 s** | 3.1 s | -| Ready (CPU settled) | **1.1 s** | 13.2 s | -| Memory (USS, all processes) | **169 MB** | 2011 MB | -| CPU time until ready | **2.4 s** | 47.9 s | -| Idle CPU | **4 %** of a core | 7 % of a core | -| Quit | **0.3 s** | 5.9 s | +| | OpenIDEA | IntelliJ IDEA 2026.2.3 | +| --------------------------- | ----------------- | ---------------------- | +| Window with the project | **0.9 s** | 3.1 s | +| Ready (CPU settled) | **1.1 s** | 13.2 s | +| Memory (USS, all processes) | **169 MB** | 2011 MB | +| CPU time until ready | **2.4 s** | 47.9 s | +| Idle CPU | **4 %** of a core | 7 % of a core | +| Quit | **0.3 s** | 5.9 s | A release build of OpenIDEA from `main` and IDEA with default settings and plugins, on Windows 11, 32-core AMD, 62 GB RAM. diff --git a/THIRD_PARTY_LICENSES.md b/THIRD_PARTY_LICENSES.md index 202e475bc..df0396a90 100644 --- a/THIRD_PARTY_LICENSES.md +++ b/THIRD_PARTY_LICENSES.md @@ -116,7 +116,7 @@ Apache License Version 2.0, January 2004 -http://www.apache.org/licenses/ +http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION @@ -251,7 +251,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` - ## Chinese UI terminology from Visual Studio Code Some Simplified Chinese terms in `src/platform/locales/text/zh.json` follow the diff --git a/docs/themes.md b/docs/themes.md index 55b0531b0..b4420ad9e 100644 --- a/docs/themes.md +++ b/docs/themes.md @@ -87,12 +87,12 @@ terminal is a real xterm renderer, without a native PTY or shell. These images cover the shell, sidebar, editor, gutter, find matches, terminal, Settings, focused controls, disabled settings and the selected theme popup. -| Theme | Workbench, editor and terminal | Settings and theme popup | -|---|---|---| +| Theme | Workbench, editor and terminal | Settings and theme popup | +| --------------- | -------------------------------------------------------- | ---------------------------------------------------- | | Solarized Light | [Screenshot](media/themes/solarized-light-workbench.png) | [Screenshot](media/themes/solarized-light-popup.png) | -| Solarized Dark | [Screenshot](media/themes/solarized-dark-workbench.png) | [Screenshot](media/themes/solarized-dark-popup.png) | -| One Light | [Screenshot](media/themes/one-light-workbench.png) | [Screenshot](media/themes/one-light-popup.png) | -| One Dark | [Screenshot](media/themes/one-dark-workbench.png) | [Screenshot](media/themes/one-dark-popup.png) | +| Solarized Dark | [Screenshot](media/themes/solarized-dark-workbench.png) | [Screenshot](media/themes/solarized-dark-popup.png) | +| One Light | [Screenshot](media/themes/one-light-workbench.png) | [Screenshot](media/themes/one-light-popup.png) | +| One Dark | [Screenshot](media/themes/one-dark-workbench.png) | [Screenshot](media/themes/one-dark-popup.png) | The browser regression also checks refresh / startup cache restoration, selection visibility, same-kind switches, the quick menu, existing themes, diff --git a/index.html b/index.html index 30e7b9125..845b697da 100644 --- a/index.html +++ b/index.html @@ -11,11 +11,20 @@
- +
diff --git a/package.json b/package.json index d51e0f5ea..e2a928ac9 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "test:watch": "vitest", "lint": "oxlint", "format": "oxfmt", + "format:check": "oxfmt --check", "typecheck": "tsrs --noEmit && tsrs -p tsconfig.node.json --noEmit && tsrs -p perf --noEmit && tsrs -p scripts --noEmit", "gen:bindings": "cargo test -p openidea --test export_bindings", "gen:theme-docs": "node scripts/theme/gen-docs.ts", diff --git a/perf/compare/README.md b/perf/compare/README.md index 304a57926..4d5099fe4 100644 --- a/perf/compare/README.md +++ b/perf/compare/README.md @@ -13,15 +13,15 @@ python perf/compare/bench.py ~/src/spring-petclinic --runs 5 --wipe-caches # c Each run launches the app on the project, waits until it is ready, idles, closes it, and records: -| Metric | How | -|---|---| -| `window_s` | first visible window whose title matches `window_title` (the project name) | -| `ready_s` | the process tree's CPU stays under `--quiet-cores` for `--quiet-secs`, after the window and any `ready_after` markers | -| markers | first/last time a log line matches, e.g. OpenIDEA `indexed`, IDEA `exit dumb mode` | -| `peak_rss_mb`, `rss_mb`, `uss_mb`, `pss_mb` | summed over every process the app started (WebView2/WebKit, jdtls, language servers, the JVM) | -| `total_cpu_s`, `idle_cpu_pct` | CPU time until ready; CPU while idle for `--idle-secs` | -| `exit_s` | until every process has exited | -| `cache_mb`, install size | `cache_dirs`, `install_dir` | +| Metric | How | +| ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `window_s` | first visible window whose title matches `window_title` (the project name) | +| `ready_s` | the process tree's CPU stays under `--quiet-cores` for `--quiet-secs`, after the window and any `ready_after` markers | +| markers | first/last time a log line matches, e.g. OpenIDEA `indexed`, IDEA `exit dumb mode` | +| `peak_rss_mb`, `rss_mb`, `uss_mb`, `pss_mb` | summed over every process the app started (WebView2/WebKit, jdtls, language servers, the JVM) | +| `total_cpu_s`, `idle_cpu_pct` | CPU time until ready; CPU while idle for `--idle-secs` | +| `exit_s` | until every process has exited | +| `cache_mb`, install size | `cache_dirs`, `install_dir` | Apps run interleaved, rotating the order, after `--warmup` discarded runs. Output goes to `results/