Графік комітів
4466 Коміти
Автор SHA1 Повідомлення Дата
audichuang 08eb9e3ff9 fix(editor): don't save stale text over a file replaced by binary content (#6840)
reload_from_disk treated a file that now loads as binary like a document opened as binary: it refreshed the disk stamp without a disk-change report, so autosave wrote the next edit over the binary file. A detected-encoding buffer now gets the disk conflict too. Reopening a file whose closed tab kept unsaved changes shows that buffer as text instead of a binary viewer that hid what Save would write. A clean buffer gets its own disk-change wording.

Co-authored-by: audichuang <[email protected]>
2026-11-29 21:34:53 +08:00
LU XIANGRUIтаwildcatDownstairs 3d6ad2e254 feat(run): show xcodebuild errors and warnings in Problems (#6848)
Xcode run and test configurations now publish the compiler and linker messages in their xcodebuild output to Problems and the editor as they arrive. A Format::Xcode on top of the GCC/Clang line parser folds in notes, project-level lines and Undefined symbols blocks; XcodebuildMessages resolves positions, maps symlinked paths back to the project, reports each message once across architectures and stops at the build result. A new run clears the files its previous run reported; messages without a location go on the project file.

Closes #6842

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 21:32:42 +08:00
LU XIANGRUIтаwildcatDownstairs 55b23c90b8 feat(lsp): open documents a language server asks to show (#6846)
Advertise window/showDocument support. An existing file: URI becomes an LspShowDocument event that the frontend opens through openCodeLocation with the requested selection and focus; external http/https/mailto links open in the browser. Anything else answers success: false. This makes sourcekit-lsp's Expand Macro and Inline Macro code actions work.

Closes #6845

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 21:27:53 +08:00
l0ng-ai 3fb58cf69b feat(lsp): stop a language server from the status bar popup (#6847)
Running, busy and starting servers get a Stop button next to Restart in the language server popup. LspManager::stop shuts the instance down and leaves it idle, so it starts again when a file it serves is opened; a notification says it will restart when needed. Adds the lsp_stop command.

Fixes #6835
2026-11-29 21:20:31 +08:00
l0ng-ai 3b6ee66b74 fix(debugger): keep the inlay Run to Cursor button while the pointer moves to it (#6841)
The button sits left of the line's first non-space character, over the indent or the gutter, but the hover area started at the text and ended four characters in: moving the pointer to the button left the area and hid it before it could be clicked. The area now includes the gutter, and while the button is shown it reaches the button's right edge on that line.

Fixes #6832
2026-11-29 20:37:05 +08:00
l0ng-ai 243b9ffa7a fix(editor): let other X11 apps keep the primary selection while the window is inactive (#6838)
Another application taking the primary selection makes WebKitGTK clear the page's selection. An editor in an inactive window is still the active element, so CodeMirror wrote its selection back and claimed the primary selection again: terminals and other X11 apps could not keep a selection while an OpenIDEA editor had one. On Linux the editor now accepts the cleared selection while its window is inactive, keeping its carets.

Fixes #6309
2026-11-29 20:03:46 +08:00
LU XIANGRUIтаwildcatDownstairs 86fabc7d1b feat(project-structure): add Project Structure and Open Module Settings entry points (#6834)
Adds Project Structure… to the title bar gear menu (before Settings) and Open Module Settings to the Project view context menu (below Compare With, above Mark Directory as). Open Module Settings is offered on the project folder, Maven / Gradle / Project Structure module folders and sources / resources roots; it opens Project Structure › Modules with the innermost module holding the path selected, and F4 / Cmd+Down on a module folder opens it too. The action uses a new project-structure icon.

Artifacts in Project Structure are now editable when the project has no build tool, since the IDE builds and deploys them itself; with Maven or Gradle the page stays read-only with a note. The Tomcat run configuration's "No artifacts configured" Fix opens Project Structure › Artifacts and the deployment list refreshes when artifacts change.

Refs #404

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 19:15:50 +08:00
l0ng-ai ae3405486f fix(debugger): skip Windows Store Python aliases when starting debugpy (#6831)
The built-in python.toml starts debugpy's adapter with a bare python3. On Windows that name (and often python) resolves to an App Execution Alias in %LOCALAPPDATA%\Microsoft\WindowsApps, which fails to start unless the Store's Python is installed, so a Python Debug Server reported failed to start ...\WindowsApps\python3.exe even with Python installed and on PATH.

The adapter now takes every match on PATH of the command, then python, then the py launcher, and uses the first that is no alias or one that runs, as the IDE already does when it installs Python tools.

Fixes #6818
2026-11-29 19:03:50 +08:00
l0ng-ai dfea6d2c1e feat(plugins): explain capabilities and open a plugin's own settings (API 1.19) (#6830)
[capabilities.reasons] lets a plugin say in one sentence why it asks for a declared capability. The permission dialog and the plugin's details in Settings › Plugins show it below the IDE's own description, marked as the plugin's words and never instead of it; it is translated through the plugin's locales/<tag>.json. Keys must be capabilities under required or optional; reasons are 1-500 characters.

settings.open(page) opens Settings at the plugin's node or one of its declared pages, and settings.open-permissions at its permissions in Settings › Plugins (plugins#permissions:<id>, so it also reaches a separate Settings window), letting a notice take the user straight there. Both work only from a command or event of a window; an undeclared page is not-found.

Plugin API 1.19.0: WIT package, engine, SDK wrappers and mock, rebuilt components; 1.18 is recorded as shipped with 0.1.54. The settings-pages fixture exercises both additions.

Refs #6745
2026-11-29 18:24:29 +08:00
l0ng-ai b9a25462ea fix(vfs): reload ignore rules after git init on Windows (#6829)
A watcher that started outside a repository caches, per directory, that no .git encloses it. After git init the explicit reload invalidated that cache from /, which is no ancestor of C:\ paths, so on Windows the .gitignore and .git/info/exclude entries written right after were not applied to listings until a file event arrived. It now invalidates from the watch root's topmost ancestor.

The Python library index test no longer opens a directory as a plain file to bump its mtime: Windows refuses that, and the bump is only needed for coarse Unix clocks.
2026-11-29 18:13:01 +08:00
l0ng-ai 04e68f6a12 fix(plugins): keep a plugin's settings pages in manifest order (#6828)
A plugin's settings sub-pages registered without an order, so the settings tree sorted them by title. They now keep the order the manifest lists them in, so no new manifest field is needed. Part of #6745.
2026-11-29 17:28:37 +08:00
Muuтаmuutot 4cfc794f60 feat(lsp): open trusted external documentation (#6819)
Documentation entries can carry a trusted externalUrl supplied by the language (never parsed from Markdown links), and the Quick Documentation window and popup menu offer External Documentation for the current page when it is an absolute http(s) URL. The built-in PHP empty/isset documentation is the first provider, pointing at its PHP manual page.

Co-authored-by: muutot <[email protected]>
2026-11-29 17:26:51 +08:00
LU XIANGRUIтаwildcatDownstairs 8105dfd41a feat(logcat): stream iOS Simulator logs in the Logcat tool window (#6822)
On macOS the Logcat device picker also lists booted iOS Simulators (simctl list devices booted). Selecting one follows simctl spawn <udid> log stream --style ndjson --level debug, mapping each log event to a Logcat line (timestamp, pid, thread, a process (subsystem:category) tag, message type to level), so simulator logs get the same level filter, colors, filter language, pause/follow and history as Android. The stream ends normally when the simulator shuts down, the list is empty off macOS or without Xcode, and a missing adb is only reported when there are no simulators either.

Closes #6801

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 17:24:11 +08:00
LU XIANGRUIтаwildcatDownstairs fca497d246 feat(run): choose the iOS simulator for Xcode projects in the toolbar (#6821)
Native Xcode projects get an iOS Simulator chooser next to the run widget on macOS, shown when the project root holds an .xcodeproj or .xcworkspace and no pubspec.yaml (Flutter lists simulators through its own daemon). ide_run::simulator lists available iOS simulators from simctl, booted first, then newest runtime, then name; the menu has Booted and Available sections with Boot / Shut Down per row and Open Simulator, refreshes on open and after each boot or shutdown, and the choice is kept per project root. Xcode run configurations without a pinned simulator launch on the chooser's selection.

Closes #6797

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 17:16:33 +08:00
l0ng-ai 5cb73c5fd1 fix(i18n): translate the Xcode run configuration type (#6827)
The Xcode App run configuration type (#6824) shipped without zh entries for its name, description and fields, so the source-text catalog test failed on main. Adds zh and zh-TW translations; the App.xcodeproj placeholder stays in English.
2026-11-29 17:14:19 +08:00
LU XIANGRUIтаwildcatDownstairs 2b435c8440 feat(run): run xcode schemes on the ios simulator (#6824)
Xcode projects get one run configuration per scheme (xcode:run:<container>:<scheme>), keeping the scheme's launch build configuration, arguments and environment; a workspace next to the projects is used as the container, and the iOS/macOS host app of a Flutter or React Native project is skipped. At launch the host resolves the simulator and the built .app and bundle id from xcodebuild -showBuildSettings -json, then runs a script that builds with xcodebuild into the project cache's DerivedData, boots the simulator, installs and launches the app with simctl --console-pty, with the environment passed as SIMCTL_CHILD_*. Stop turns the SIGINT into the SIGTERM simctl forwards to the app.

Closes #6795

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 17:07:59 +08:00
l0ng-ai db266643aa feat(terminal): add an optional Paste on right click (#6825)
Settings › Tools › Terminal gains Paste on right click (terminal.rightClickPaste, off by default). When on, a plain right-click in a terminal pane pastes the clipboard through the same path as Paste and middle-click paste, so bracketed paste and multiline handling are unchanged; Ctrl or Shift + right-click still opens the context menu, and focus stays in the pane.

Fixes #6634
2026-11-29 16:55:39 +08:00
l0ng-ai 4812d28614 fix(dotnet): show only top-level solutions above the Project view folder (#6820)
Since #6224 the Project view listed every discovered .NET solution and standalone project above the project folder, so a polyglot repository with many solutions in subfolders got dozens of root nodes ahead of its own folder. Only solution and project files directly in a content root (the project root, or each workspace member folder) now get a node there; nested ones stay in their folders, where they already showed.

Fixes #6803
2026-11-29 16:47:13 +08:00
Muuтаmuutot 7c9f343ca4 feat(vcs): open changed files at their repository revision (#6816)
Adds Open Repository Version to the Git Log changed-files menu: each selected file opens read-only at its revision after the change through the existing revision editor. Deleted files and directory symlinks are skipped in both enablement and execution, read-only working-tree files still qualify, and grouped directory selections contribute their files. Includes zh and zh-TW translations.

Co-authored-by: muutot <[email protected]>
2026-11-29 16:40:43 +08:00
Muuтаmuutot d815a8ef44 feat(editor): add Cut Line Backward action (#6815)
Adds Cut Line Backward, mapped from EditorCutLineBackward: it cuts from the start of the previous line to the primary caret (from the document start on the first line) and collects repeated cuts into one clipboard entry like the other kill-ring cuts, a backward cut going before the collected text. Includes zh and zh-TW translations.

Co-authored-by: muutot <[email protected]>
2026-11-29 16:36:01 +08:00
l0ng-ai d22c42e471 test(vim): count Disable Sticky Lines for Language as a known action (#6817)
EditorStickyLinesDisableForLang (#6814) maps to editor.disableStickyLinesForLanguage, which no keymap preset binds, so the :action id check in rc.test.ts failed on main. The action is now in its known list.
2026-11-29 16:32:41 +08:00
Muuтаmuutot a111b32e11 feat(editor): disable sticky lines for the current language (#6814)
Adds a View action, Disable Sticky Lines for Language, that appends the active document's language to the existing per-language disabled list without touching the global Sticky Lines setting. It is available when sticky lines are on and the active editor has a known language (never for a notebook cell), keeps other entries, skips redundant writes, and is mapped from the EditorStickyLinesDisableForLang action id. Includes zh and zh-TW translations.

Co-authored-by: muutot <[email protected]>
2026-11-29 16:22:20 +08:00
Muuтаmuutot f7141f6515 feat(search): inspect previewable results on single click (#6813)
With the preview shown, a single click on a previewable Search Everywhere result opened it and closed the popup, so results could not be browsed in the preview by mouse. A single click now only selects and previews such a row; a double click, Enter or Shift+Enter opens it. Action rows, rows without a preview and clicks with the preview hidden still open on a single click.

Co-authored-by: muutot <[email protected]>
2026-11-29 16:21:58 +08:00
Muuтаmuutot 2d14368d2c feat(structure): jump to filtered symbols with F4 (#6811)
F4 in the File Structure popup navigated only when the tree had focus. The filter input now handles F4 like Enter, opening the selected symbol with the same node resolution, so the empty-query preselection, both narrowing modes, explicit tree selection and unmatched filters behave the same for both keys.

Co-authored-by: muutot <[email protected]>
2026-11-29 16:21:40 +08:00
Vladislav Kuzmin 5cbc4134a1 feat(database): join tables across saved data sources in a query workspace (#6265)
Query Workspace, opened from the Database tree, runs a single SELECT joining two to eight tables from saved PostgreSQL, ClickHouse, SQLite and file-backed DuckDB sources. Typing # picks a saved source without connecting; table and key completion fetch that source's metadata, and optional aliases disambiguate duplicate names. The project host reads the projected columns and join keys on independent read-only connections, complete or failing, within per-input and total row/byte limits, and joins them in the installed DuckDB JDBC driver. Run executes the statement at the caret or the selected statements in order and Execute Script runs the editor; each statement keeps its timing, result tab and page, and Stop or the first error ends the batch.

Closes #6177

Co-authored-by: principalwater <[email protected]>
2026-11-29 16:14:39 +08:00
Vladislav Kuzmin 5a92145ad9 feat(database): open and create DuckLake catalogs (#6206)
A DuckDB data source can be a DuckLake catalog: an existing catalog file or named DuckDB secret is attached read-only, without migrating its metadata version, optionally with a relocated local data directory. Create New DuckLake is a separate, confirmed action that requires a new directory, so testing or reconnecting never initializes a catalog. The Rust side limits DuckLake sources to read-only jdbc:duckdb with no credentials, properties, tunnels or session overrides, and saving catalog settings goes through a dedicated approval command so an older remote host cannot drop them silently. The JDBC bridge JAR is rebuilt from the updated sources.

Part of #334

Co-authored-by: principalwater <[email protected]>
2026-11-29 16:13:52 +08:00
Bert Verhelstтаbertyhell 4354839584 feat(database): edit a PostgreSQL table's owner, tablespace, storage options and persistence (#6693)
Modify Table on a PostgreSQL table gets a Properties tab for owner, tablespace, storage options (including toast.*) and logged/unlogged persistence, with access method and partition key shown read-only. Each change adds one alter table statement to the preview; the owner change runs last, after a rename. The properties are read with one pg_class query, with a fallback for catalogs before PostgreSQL 12; engines that report none show no tab.

Part of #6306

Co-authored-by: bertyhell <[email protected]>
2026-11-29 15:56:23 +08:00
Bert Verhelstтаbertyhell e1a1becadd feat(python): offer imports of names from installed packages in Alt+Enter (#6676)
basedpyright offers import fixes only for project and standard-library symbols. A library symbol index now reads each public module of the interpreter's site-packages once (its __all__, otherwise public top-level definitions, preferring stubs), rebuilt when a folder changes, and Alt+Enter on an unresolved name lists Import rows from it when the server has no import fix for that name.

Closes #6521

Co-authored-by: bertyhell <[email protected]>
2026-11-29 15:55:16 +08:00
Bert Verhelstтаbertyhell ad685ea19e feat(debugger): Disassembly view and instruction stepping for native debugging (#6694)
Native debug sessions whose adapter supports disassemble get a Disassembly tab showing the selected frame's instructions with the program counter highlighted, following stepping and frame selection, including frames without source. Show Disassembly is on the Frames list; Step Over Instruction and Step Into Instruction send steps with instruction granularity and are disabled with a reason when the adapter lacks it. Frames keep instructionPointerReference; when the PC is not where the requested window expects it, the view reads again from the PC.

lldb-dap sends instruction bytes already spaced and pads mnemonics unevenly; the view strips the spacing before grouping the bytes and pads mnemonics to one width.

Part of #5922

Co-authored-by: bertyhell <[email protected]>
2026-11-29 15:54:29 +08:00
Bert Verhelstтаbertyhell 5fb8f21c60 feat(debugger): native Memory View for C/C++ debugging (#6674)
Native debug sessions whose adapter supports readMemory get a read-only Memory View tab: an address or expression field, address/hex/ASCII rows aligned to 16 bytes with the target byte marked, paging and a re-read after each stop. View Memory is offered on variables and watches that carry a memoryReference. The client now declares supportsMemoryReferences in initialize and keeps memoryReference on variables and evaluation results; adapter errors are shown without ending the session.

Closes #5921

Co-authored-by: bertyhell <[email protected]>
2026-11-29 15:52:32 +08:00
Bert Verhelstтаbertyhell 68abe345cc feat(run): read-only caret with keyboard navigation in the Run console (#6670)
The Run console's output gets a read-only caret: Home/End go to the line ends, PageUp/PageDown move a page, Ctrl/Cmd+Home/End go to the start or end of the output, the arrows move the caret and Shift extends the selection. The caret is the browser selection's focus, so mouse and keyboard share it; moves are computed over the virtualized rows, keyboard selections keep only their end rows mounted and copy from the console model. Leaving the end of the output stops following and Ctrl/Cmd+End resumes it; typing returns the caret to the input. Covers Run, Services, stack-trace and thread-dump consoles.

Closes #6295

Co-authored-by: bertyhell <[email protected]>
2026-11-29 15:52:02 +08:00
audichuang 32381cc740 test(agents): wait for the fake agent's connections to close after shutdown (#6809)
Tests that shut the manager down while the fake agent waits on a permission request could hang: returning before the fake's side read the end of the connection dropped the runtime, which then waited forever on the blocked thread. A shut_down helper now waits for each fake connection to close.

Co-authored-by: audichuang <[email protected]>
2026-11-29 15:51:42 +08:00
Bert Verhelstтаbertyhell d897236bd7 feat(vcs): add a global Enable Git integration switch (#6704)
Settings > Version Control > Git gets an Enable Git integration master toggle (global, on by default). While it is off the IDE discovers no repositories and runs no git: status, log, blame, fetch, clone, GitHub, the MCP git tools, plugin repository access and agent worktrees refuse to run, and the Git menu, Get from Version Control, the Git, Commit and GitHub Actions tool windows, Git actions and the branch widget are hidden. Turning it back on restores them without reopening the project. Settings pages gain a reusable master toggle that disables the page's sections, and MenuConfig gains a hidden list applied to the native and in-app menus.

Co-authored-by: bertyhell <[email protected]>
2026-11-29 15:45:38 +08:00
l0ng-ai 68e3adde99 chore(bindings): regenerate after project_roots moved off the IPC thread (#6812)
#6799 made project_roots a spawned desktop command and added a doc line without regenerating src/bindings.ts and the command snapshot, which CI's generated-files check compares.
2026-11-29 15:36:33 +08:00
LU XIANGRUIтаwildcatDownstairs b5aa21e791 perf: cut per-file round trips on network drives (#6799)
On network shares every stat is a round trip, and several paths did one per file or per ancestor. Directory listings take kind, size and mtime from the listing itself; Project view expansion lists through the project watcher and reuses its ignore rules and repository root; root detection probes Unity and virtual-env markers only when their names appear; the Gradle build walk is reused for 30 seconds on hot paths; project_roots runs off the IPC thread; index warm start checks files against one listing per folder, in parallel, and stops when the project closes; git status on network paths compares only mtime and size.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 15:19:27 +08:00
audichuang 652798bc53 feat(http): follow the macOS PAC script in Auto proxy mode (#6783)
reqwest's system proxy ignores macOS Automatic Proxy Configuration. In Auto mode, when a PAC URL is enabled and no *_PROXY variable is set, the script is fetched in the background (refreshed every 5 minutes, retried after failures) and evaluated per request with CFNetwork, caching routes per host. Until the script loads, or when it gives no proxy, requests use the manual system proxy as before. The cached shared client is rebuilt when the PAC URL changes.

Closes #6761

Co-authored-by: audichuang <[email protected]>
2026-11-29 15:17:21 +08:00
Muuтаmuutot 85e417001a feat(structure): prefer File Structure matches near the caret (#6782)
File Structure speed search preselected the globally best match even when the caret was inside another symbol. It now prefers a direct child of the caret symbol, then a sibling, then a descendant, before falling back to the best match, keeping scores, tree-order ties and up/down match cycling.

Co-authored-by: muutot <[email protected]>
2026-11-29 15:16:53 +08:00
Muuтаmuutot 8488eda54e feat(editor): add plain-text paste from history (#6780)
Paste from History gains a Paste as Plain Text choice that inserts the selected entries through input.pastePlain, skipping Reformat on Paste, without rereading the system clipboard. Normal paste, Enter, double-click, multi-selection order and line-wise entries keep their behavior.

Co-authored-by: muutot <[email protected]>
2026-11-29 15:16:33 +08:00
nako-ruruтаnako-ruru d02a3592b0 feat(usages): option to open Find Usages results in a new tab (#6772)
Find Usages reused the selected unpinned result tab, so a new search replaced the previous one. An Open Results in New Tab toggle in the tool window menu makes every search open its own tab; it is off by default and persists with the Preview preference.

Co-authored-by: nako-ruru <[email protected]>
2026-11-29 15:16:08 +08:00
Deng Liuтаdengliu 439b7940a8 feat(agents): recover and resume interrupted agent tasks (#6808)
Agent turns cut off by a window close, quit, restart, backend stop or crash are recorded as interrupted (without changing the task status) and can be resumed from the task view, a notification or automatically on reopen. Closing a window with running tasks asks whether to pause them or arm a one-time auto-resume. Transient network failures hold the turn in Waiting for network and continue once connectivity returns within a configurable window. Auto-resume is refused when the turn was waiting for tool approval, the approval policy changed, several local tasks share a checkout, or a crash loop is detected. Recovery settings are user-only so project settings cannot force auto-resume.

Closes #6758

Co-authored-by: dengliu <[email protected]>
2026-11-29 15:15:42 +08:00
LU XIANGRUIтаwildcatDownstairs de92f3b367 feat(run): run xcode scheme tests with results in the test tree (#6804)
Each Xcode scheme whose TestAction has tests gets a Test <scheme> configuration running xcodebuild test with a fresh result bundle. At launch a -destination is added unless one is configured (the booted iOS simulator, else the first iPhone of the newest runtime). After the run, the result bundle is read through a new run_xcode_test_results command and XCTest and Swift Testing results fill the test tree; reruns of single tests, suites or failed tests use -only-testing with the identifiers from the bundle.

Closes #6796

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 14:48:42 +08:00
LU XIANGRUIтаwildcatDownstairs 5b904f7896 feat(run): read xcode schemes from disk (#6790)
Adds ide_run::xcode::schemes(root), which reads the schemes of the .xcodeproj/.xcworkspace bundles at a project root from xcshareddata/xcschemes, falling back to the current user's xcuserdata (a shared scheme shadows a personal one of the same name). Each scheme carries its container, whether it is shared, the launch and test build configurations, enabled launch arguments and environment variables, and the buildable references.

Closes #6785

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 14:44:47 +08:00
LU XIANGRUIтаwildcatDownstairs 511d3f21bb feat(run): run swift test with results in the test tree and single tests from the gutter (#6798)
swift test runs now feed the test tree: XCTest results are read from its console lines (including failure locations), and Swift Testing results from its JSON event stream (ABI version 0), requested with --experimental-event-stream-output so suite-qualified ids and issues arrive while the run goes. Swift files under Tests/<target>/ that import XCTest or Testing get gutter run icons on XCTestCase test methods, @Test functions and the types holding them or marked @Suite, each running swift test --filter in the package directory; Rerun Failed and Run Selected build one --filter per test.

Adds fixtures/swiftpm-app with XCTest and Swift Testing tests; it declares macOS 10.15 so its Swift Testing tests also build with older toolchains (verified with Swift 6.1).

Closes #6788

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 14:44:13 +08:00
LU XIANGRUIтаwildcatDownstairs 972f18331e feat(swift): offer a BSP config for Xcode projects (#6793)
sourcekit-lsp needs a Build Server Protocol config to understand .xcodeproj/.xcworkspace projects. It now also starts at roots marked by .bsp, *.xcworkspace or *.xcodeproj, and a project root with an Xcode project but no BSP config gets a notification offering to generate one with xcode-build-server or sourcekit-xcode-bsp from PATH (workspace preferred), then restarts sourcekit-lsp; without either tool it explains how to install one. The root is typed as a Swift project in the Project view.

Closes #6787

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 14:43:12 +08:00
LU XIANGRUIтаwildcatDownstairs 77e669c189 feat(run): detect SwiftPM executable products as run configurations (#6792)
A Swift package now gets one run configuration per executable product, read from the manifest source without running it: declared .executable products plus executable targets no product builds (and legacy targets with main.swift). Each runs swift run --skip-build <product> after a swift build --product <product> before-launch task, and Debug launches .build/debug/<product> under lldb-dap with the configured arguments.

Closes #6786

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 14:39:13 +08:00
LU XIANGRUIтаwildcatDownstairs f2641b9697 docs(swift): add a Swift language page (#6791)
Adds a Swift language page (en, zh) covering toolchain setup, how the sourcekit-lsp workspace root is found, SwiftPM packages and Xcode projects through a BSP config, choosing an Xcode with DEVELOPER_DIR, formatting, single-file runs, debugging with lldb-dap, and current limitations.

Closes #6789

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 14:38:45 +08:00
LU XIANGRUIтаwildcatDownstairs 3811dfb512 feat(settings): sync the list of installed plugins (#6756)
Adds a Plugins category to Settings Sync. plugins.json maps each computer's random id to the plugins installed in its data directory; every computer writes only its own list, so lists never conflict and an uninstall only shortens one of them. After a sync, plugins other computers have and this one lacks are looked up in the marketplace and offered in a notification under the marketplace's names; ids that are not marketplace ids are dropped. Install... lets the user pick (each goes through the usual install and consent page) and Ignore These Plugins declines them; nothing is installed or uninstalled on its own. An unreadable plugins.json is left untouched.

The hidden plugins.installFromMarket action now accepts a single id (Import Settings) or a list of ids (Settings Sync).

Closes #6750

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 14:37:35 +08:00
LU XIANGRUIтаwildcatDownstairs 9e2da77162 feat(settings): sync settings automatically on startup and after changes (#6748)
Settings Sync gains Sync automatically (on by default once a repository is set): a sync on startup, shared across windows opened within a minute, and one 30 seconds after the last settings change. Before going to the network the automatic sync checks locally whether anything that syncs changed, so machine-only changes cause no fetch, and applying a sync does not trigger another.

Automatic syncs use saved credentials only and never prompt, stay quiet when nothing changed, report pulled and conflicting settings like Sync Now, show a warning with Sync Now on failure, and leave a notification instead of asking when the repository holds settings this computer never synced with. Frontend entries edited during a sync are kept for the next one, and a change arriving during a sync schedules one more.

Closes #6744

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 14:32:51 +08:00
LU XIANGRUIтаwildcatDownstairs 3a89b94624 feat(settings): sync IDE settings through a Git repository (#6733)
Adds Settings > Appearance & Behavior > System Settings > Settings Sync, which syncs settings through a Git repository the user chooses (a secret gist works too); Git runs with the user's own credentials. Categories can be toggled individually: appearance, editor, keymaps, templates, macros, tool window layouts and view options, and other settings.

Sync Now (also File > Manage IDE Settings) fetches, merges each setting three ways against the last synced commit, commits, pushes and applies the result, retrying the merge once if another machine pushed in between. When both sides changed a setting this machine wins and the notification names it. The first sync with a repository that already holds settings asks whether to merge, use the repository's or use this computer's. An unreadable category file stops the sync without changing anything; a deleted one is written again.

Credentials, environment/argument/command/path-like settings, path values, URLs with credentials, proxy, SSH, deployment, run targets, tools, language servers, the MCP server, agent permissions and machine-local state never sync in either direction. The repository holds one JSON file per category and is written through a bare clone with plumbing commands only, keeping every other file in the tree.

Closes #6713

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 14:27:46 +08:00
LU XIANGRUIтаwildcatDownstairs df40f0befe feat(run): debug Python on SSH run targets (#6696)
Debug on a Python configuration with an SSH run target now starts the program under the debugpy bootstrap listening on the host's loopback interface, forwards a local port through the SSH session and attaches with the project root mapped onto the target folder. When the host's interpreter has no debugpy, the IDE's copy is uploaded once to ~/.openidea/debug/<version> (written to a temporary folder and renamed into place so concurrent runs don't see partial files); without a local copy the error offers to install it. The check times out after 30 s, and the run fails if debugpy is not ready 120 s after start. The launch parameter containerDebug is renamed targetDebug.

Closes #6695

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 14:03:48 +08:00