diff --git a/src/editor/ProjectBreadcrumb.tsx b/src/editor/ProjectBreadcrumb.tsx index 7b7e2eb47..ce283cee8 100644 --- a/src/editor/ProjectBreadcrumb.tsx +++ b/src/editor/ProjectBreadcrumb.tsx @@ -373,7 +373,7 @@ const FileCrumb = ({ const handleTriggerFocus = useCallback(() => { if (manageFilesPending.current) { manageFilesPending.current = false; - showSidebarPanel("project"); + showSidebarPanel("files"); } }, [showSidebarPanel]); return ( diff --git a/src/router-hooks.tsx b/src/router-hooks.tsx index 62eb7d14f..c2f863a39 100644 --- a/src/router-hooks.tsx +++ b/src/router-hooks.tsx @@ -15,9 +15,9 @@ import { useLogging } from "./logging/logging-hooks"; import { createEditorUrl, createIframeEditorUrl } from "./urls"; import { useIframeMode } from "./iframe-mode-hooks"; -export type TabName = "api" | "ideas" | "reference" | "project"; +export type TabName = "api" | "ideas" | "reference" | "files"; -const tabNames: readonly string[] = ["api", "ideas", "reference", "project"]; +const tabNames: readonly string[] = ["api", "ideas", "reference", "files"]; export const isTabName = (value: string | undefined): value is TabName => value !== undefined && tabNames.includes(value); diff --git a/src/workbench/SideBar.tsx b/src/workbench/SideBar.tsx index 2f3128bb5..374fc2fc6 100644 --- a/src/workbench/SideBar.tsx +++ b/src/workbench/SideBar.tsx @@ -109,7 +109,7 @@ const SideBar = ({ color: "gray.75", }, { - id: "project" as const, + id: "files" as const, title: intl.formatMessage({ id: "files-tab" }), icon: VscFiles, contents: (