From 577193d3878e896b7e01b50812e475ef6ad53b37 Mon Sep 17 00:00:00 2001 From: LU XIANGRUI <1078666705@qq.com> Date: Tue, 17 Nov 2026 14:31:19 +0900 Subject: [PATCH] feat(plugins): the editor's tab size in editor panels (#3906) openidea.editor.get() includes tabSize, the editor state's tab size (Code Style, .editorconfig, indent detection or the status bar's indent picker), and onTarget fires again with the new get() value when it changes for the same file, at most once a frame. Documented under API 1.10; the minimap fixture expands tabs to that size. Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com> --- .../fixtures/editor-panel/web/index.html | 24 ++++++-- plugins/README.md | 7 ++- .../plugins/__tests__/editorPanels.test.tsx | 56 +++++++++++++++++-- src/features/plugins/views/WebView.tsx | 2 + src/features/plugins/views/editorPanel.tsx | 17 +++++- src/features/plugins/views/frame-bridge.js | 4 +- 6 files changed, 95 insertions(+), 15 deletions(-) diff --git a/crates/ide-plugin/tests/fixtures/editor-panel/web/index.html b/crates/ide-plugin/tests/fixtures/editor-panel/web/index.html index 220992eb4..5e7b35743 100644 --- a/crates/ide-plugin/tests/fixtures/editor-panel/web/index.html +++ b/crates/ide-plugin/tests/fixtures/editor-panel/web/index.html @@ -21,10 +21,11 @@