Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): open the file a bare filename reference names #6297

MergedBrechard(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/6297/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 192 additions and 2 deletions.

x
0 of 3 viewed, 3 left
51 additions and 2 deletionsapps/web/src/components/ChatMarkdown.tsxModified
View file
@@ -90,6 +90,13 @@
import { previewEnvironment } from "../state/preview";
import { useAtomCommand } from "../state/use-atom-command";
import { useAtomQueryRunner } from "../state/use-atom-query-runner";
+import { projectEnvironment } from "../state/projects";
+import {
+ claimWorkspaceBasenameLookup,
+ needsWorkspaceBasenameLookup,
+ pickWorkspaceBasenameMatch,
+ WORKSPACE_BASENAME_LOOKUP_LIMIT,
+} from "../workspaceBasenameLookup";
import { useOpenChangeRequestLink } from "~/lib/openPullRequestLink";
import { writeTextToClipboard } from "../hooks/useCopyToClipboard";
import { isPreviewSupportedInRuntime } from "../previewStateStore";
@@ -791,6 +798,7 @@
theme: "light" | "dark";
threadRef?: ScopedThreadRef | undefined;
onOpen: (targetPath: string) => Promise<AtomCommandResult<unknown, unknown>>;
+ onOpenInPanel: (workspaceRelativePath: string, line: number | undefined) => void;
onOpenInBrowser?: (() => Promise<AtomCommandResult<unknown, unknown>>) | undefined;
className?: string | undefined;
@@ -1093,6 +1101,7 @@
theme,
threadRef,
onOpen,
+ onOpenInPanel,
onOpenInBrowser,