fix(plugins): import custom editor host types from their own module to restore main lint (#37319)

This commit is contained in:
Neil
2026-11-01 20:45:26 -08:00
committed by GitHub
parent 892e8009f8
commit ac48e72d77
5 changed files with 9 additions and 16 deletions
@@ -20,11 +20,11 @@ import { editorShortcutMatches } from './editor-shortcuts'
import { registerEditorFrameFlush } from './editor-pending-flush'
import { useCustomEditorReloadFlush } from './use-custom-editor-reload-flush'
import { PluginEditorNeedsDesktopNotice } from './PluginEditorNeedsDesktopNotice'
import {
createCustomEditorHost,
type CustomEditorBinaryDocument,
type CustomEditorEditRefusal
} from './plugin-custom-editor-host'
import { createCustomEditorHost } from './plugin-custom-editor-host'
import type {
CustomEditorBinaryDocument,
CustomEditorEditRefusal
} from './plugin-custom-editor-host-types'
type PluginCustomEditorFrameProps = {
editor: ActivePluginCustomEditor
@@ -1,4 +1,4 @@
import type { CustomEditorBinaryDocument } from './plugin-custom-editor-host'
import type { CustomEditorBinaryDocument } from './plugin-custom-editor-host-types'
/**
* A binary custom editor's bytes last read or saved, and the unsaved edit. Kept apart from the
@@ -4,7 +4,7 @@ import type { OpenFile } from '@/store/slices/editor'
import { editorTabFileAccess } from '@/lib/local-file-access'
import type { RuntimeFileOperationArgs } from '@/runtime/runtime-file-client-types'
import { writeRuntimeFileBytes } from '@/runtime/runtime-file-bytes-write'
import type { CustomEditorBinaryDocument } from './plugin-custom-editor-host'
import type { CustomEditorBinaryDocument } from './plugin-custom-editor-host-types'
import type { EditorSaveResult, EditorSaveTrigger } from './editor-save-disk-precondition'
import {
clearSelfWrite,
@@ -3,7 +3,8 @@ import { CUSTOM_EDITOR_DOCUMENT_MAX_BYTES } from '../../../../shared/plugins/fra
import { isPluginJsonObject } from '../../../../shared/plugins/manifest/plugin-json-object'
import { createPanelMessageBudget } from '../../../../shared/plugins/frames/plugin-panel-message-budget'
import { createPluginFrameMessageHandler } from '../right-sidebar/plugin-frame-host'
import { createCustomEditorHost, type CustomEditorHostOptions } from './plugin-custom-editor-host'
import { createCustomEditorHost } from './plugin-custom-editor-host'
import type { CustomEditorHostOptions } from './plugin-custom-editor-host-types'
vi.mock('../right-sidebar/plugin-panel-design-token-css', () => ({
currentPluginFrameTheme: () => ({ colorScheme: 'light', tokens: '' })
@@ -35,14 +35,6 @@ import type {
CustomEditorUnappliedEdit
} from './plugin-custom-editor-host-types'
export type {
CustomEditorBinaryDocument,
CustomEditorEditRefusal,
CustomEditorHost,
CustomEditorHostOptions,
CustomEditorUnappliedEdit
} from './plugin-custom-editor-host-types'
/** The frame only ever holds the document: Orca owns the buffer, dirty state and save. */
export function createCustomEditorHost(options: CustomEditorHostOptions): CustomEditorHost {
const budget =