дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 11:15:40 +02:00
feat(debugger): Browse the debug console history and open diff settings from the keyboard (#162)
- Debug console: typed expressions are kept per project, and Browse Console History (⌥⌘E / Ctrl+Alt+E) lists them, most recent first, to put one back into the input. - Diff viewer: Diff Settings (⇧⌘D / Ctrl+Shift+D) opens the viewer options (side-by-side / unified, whitespace, highlighting, collapsing, scroll sync) as a popup menu.
Цей коміт міститься в:
1 джерело
a28600c55a
коміт
aeb190ffda
10 files changed
+142
-10
No files matched your search
@@ -4,7 +4,7 @@ import { call, commands, isCancelled, isTauri, nextRequestId, type RunConfig, ty
|
||||
import { downloadJdkActions } from "@/platform/jdk";
|
||||
import { useProject } from "@/platform/project";
|
||||
import { activeEditor } from "@/editor/api";
|
||||
import { maybeEditorService, notifications, toolWindowService } from "@/workbench/contributions";
|
||||
import { maybeEditorService, notifications, showStatusInfo, toolWindowService } from "@/workbench/contributions";
|
||||
import { canPlaceBreakpoint } from "./breakpoints/languages";
|
||||
import {
|
||||
removeAllBreakpoints,
|
||||
@@ -35,6 +35,7 @@ import {
|
||||
type DebugSession,
|
||||
} from "./state";
|
||||
import { focusedDebugView } from "./ui/focusedView";
|
||||
import { browseFocusedConsoleHistory } from "./ui/expressionHistory";
|
||||
import { expressionAt, valueHint } from "./editor/valueTooltip";
|
||||
import { showHint } from "@/editor/lsp/hint";
|
||||
import { pausedLineTargets, startInlineSmartStep } from "./editor/smartStep";
|
||||
@@ -610,6 +611,16 @@ export function registerDebugActions(): () => void {
|
||||
when: "debugSessionActive",
|
||||
run: () => openEvaluateDialog(evaluateSeed()),
|
||||
},
|
||||
{
|
||||
id: "debug.browseConsoleHistory",
|
||||
title: "Browse Console History",
|
||||
category: "Debug",
|
||||
keywords: ["history", "previous expressions", "repl"],
|
||||
when: "debugSessionActive",
|
||||
run: () => {
|
||||
if (!browseFocusedConsoleHistory()) showStatusInfo(tx("Focus the debug console input first"));
|
||||
},
|
||||
},
|
||||
{
|
||||
// ⌥⌘F8: the selection (or expression at the caret) evaluated in a value hint, no dialog.
|
||||
id: "debug.quickEvaluate",
|
||||
|
||||
Reference in new issue
Заблокувати користувача