From 386863197b48f28d7c0b2d05ad04fa246586f88b Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Feb 2026 04:01:27 +0000 Subject: [PATCH] fix(build): add missing React index.tsx entry files for tsup bundling Three React modules were missing their index.tsx entry files, causing tsup to skip them during buildreact. The compile step then failed with "Cannot find module" errors for: - orcide-tooltip/index.js - orcide-editor-widgets-tsx/index.js - orcide-onboarding/index.js Each index.tsx follows the existing pattern: import the component and export a mount function via mountFnGenerator. https://claude.ai/code/session_01UgRm1eNr4jVDQ4tVK2LXoR --- .../react/src/orcide-editor-widgets-tsx/index.tsx | 11 +++++++++++ .../browser/react/src/orcide-onboarding/index.tsx | 9 +++++++++ .../orcide/browser/react/src/orcide-tooltip/index.tsx | 9 +++++++++ 3 files changed, 29 insertions(+) create mode 100644 src/vs/workbench/contrib/orcide/browser/react/src/orcide-editor-widgets-tsx/index.tsx create mode 100644 src/vs/workbench/contrib/orcide/browser/react/src/orcide-onboarding/index.tsx create mode 100644 src/vs/workbench/contrib/orcide/browser/react/src/orcide-tooltip/index.tsx diff --git a/src/vs/workbench/contrib/orcide/browser/react/src/orcide-editor-widgets-tsx/index.tsx b/src/vs/workbench/contrib/orcide/browser/react/src/orcide-editor-widgets-tsx/index.tsx new file mode 100644 index 00000000..0d3655dc --- /dev/null +++ b/src/vs/workbench/contrib/orcide/browser/react/src/orcide-editor-widgets-tsx/index.tsx @@ -0,0 +1,11 @@ +/*-------------------------------------------------------------------------------------- + * Copyright 2025 Orcest AI. All rights reserved. + * Licensed under the MIT License. See LICENSE.txt for more information. + *--------------------------------------------------------------------------------------*/ + +import { mountFnGenerator } from '../util/mountFnGenerator.js' +import { OrcideCommandBar } from './OrcideCommandBar.js' +import { OrcideSelectionHelperMain } from './OrcideSelectionHelper.js' + +export const mountOrcideCommandBar = mountFnGenerator(OrcideCommandBar) +export const mountOrcideSelectionHelper = mountFnGenerator(OrcideSelectionHelperMain) diff --git a/src/vs/workbench/contrib/orcide/browser/react/src/orcide-onboarding/index.tsx b/src/vs/workbench/contrib/orcide/browser/react/src/orcide-onboarding/index.tsx new file mode 100644 index 00000000..a69502ad --- /dev/null +++ b/src/vs/workbench/contrib/orcide/browser/react/src/orcide-onboarding/index.tsx @@ -0,0 +1,9 @@ +/*-------------------------------------------------------------------------------------- + * Copyright 2025 Orcest AI. All rights reserved. + * Licensed under the MIT License. See LICENSE.txt for more information. + *--------------------------------------------------------------------------------------*/ + +import { mountFnGenerator } from '../util/mountFnGenerator.js' +import { OrcideOnboarding } from './OrcideOnboarding.js' + +export const mountOrcideOnboarding = mountFnGenerator(OrcideOnboarding) diff --git a/src/vs/workbench/contrib/orcide/browser/react/src/orcide-tooltip/index.tsx b/src/vs/workbench/contrib/orcide/browser/react/src/orcide-tooltip/index.tsx new file mode 100644 index 00000000..360bfe4e --- /dev/null +++ b/src/vs/workbench/contrib/orcide/browser/react/src/orcide-tooltip/index.tsx @@ -0,0 +1,9 @@ +/*-------------------------------------------------------------------------------------- + * Copyright 2025 Orcest AI. All rights reserved. + * Licensed under the MIT License. See LICENSE.txt for more information. + *--------------------------------------------------------------------------------------*/ + +import { mountFnGenerator } from '../util/mountFnGenerator.js' +import { OrcideTooltip } from './OrcideTooltip.js' + +export const mountOrcideTooltip = mountFnGenerator(OrcideTooltip)