feat: improve copilot plugin (#3459)

This commit is contained in:
Alex Yang
2023-07-29 00:37:01 -07:00
committed by GitHub
parent 52809a2783
commit ce0c1c39e2
7 changed files with 101 additions and 86 deletions

View File

@@ -76,7 +76,7 @@ await Promise.all(
globalThis.__pluginPackageJson__.push(packageJson);
logger.debug(`registering plugin ${pluginName}`);
logger.debug(`package.json: ${packageJson}`);
if (!release) {
if (!release && process.env.NODE_ENV === 'production') {
return Promise.resolve();
}
const pluginCompartment = new Compartment(createGlobalThis(), {});

View File

@@ -191,7 +191,12 @@ const LayoutPanel = memo(function LayoutPanel(
</Suspense>
</Panel>
<PanelResizeHandle />
<Panel defaultSize={100 - node.splitPercentage}>
<Panel
defaultSize={100 - node.splitPercentage}
style={{
overflow: 'scroll',
}}
>
<Suspense>
<LayoutPanel node={node.second} editorProps={props.editorProps} />
</Suspense>