Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): open diff files in external editor #9670

Closedipanasenko(GitHub profile, opens in a new tab)wants to merge 14 commits intomain fromrefs/pull/9670/headopened View on GitHub

Showing 3 changed files with 127 additions and 24 deletions (loading 2).

x
0 of 3 viewed, 3 left
127 additions and 24 deletionsapps/web/src/components/DiffPanel.tsxModified
View file
@@ -25,14 +25,31 @@
import * as Schema from "effect/Schema";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useCodeViewFileReveal } from "./diffs/useCodeViewFileReveal";
-import { useOpenInPreferredEditor } from "../editorPreferences";
+import { usePreferredEditor } from "../editorPreferences";
+import { openInEditorMenuLabel } from "../editorLabels";
import { type DraftId } from "../composerDraftStore";
-import { openDiffFilePrimaryAction } from "../diffFileActions";
+import {
+ openDiffFileInEditor,
+ openDiffFilePrimaryAction,
+ resolveDiffEditorLaunch,
+} from "../diffFileActions";
import { useCheckpointDiff } from "~/lib/checkpointDiffState";
import { cn } from "~/lib/utils";
import { selectThreadDiffPanelSelection, useDiffPanelStore } from "../diffPanelStore";
import { useLocalStorage } from "../hooks/useLocalStorage";
import { useTheme } from "../hooks/useTheme";
+import { readLocalApi } from "../localApi";
+import {
+ revealInFileExplorerLabelForKind,
+ revealInFileExplorerLabelForOs,
+} from "./preview/fileExplorerLabel";
+import {
+ openRemoteEditorUrl,
+ useRemoteCapableEditors,
+ useRemoteOpenHint,
+ useRemoteOpenResolution,
+} from "../remoteOpen";