From 175db73538b8b9a35cfa44459e04db5bb3c19efe Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Sat, 21 Nov 2026 09:14:57 +0000 Subject: [PATCH] Use files in the Files tab's URL The tab's id, and so its path component, was still project from before the tab was renamed. With the editor now under /project that gave /project/project. --- src/editor/ProjectBreadcrumb.tsx | 2 +- src/router-hooks.tsx | 4 ++-- src/workbench/SideBar.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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: (