feat: improve copilot plugin (#3459)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-07-29 07:37:01 +00:00
1 parent 52809a2783
commit ce0c1c39e2
7 files changed
+101 -86

No files matched your search

+1 -1
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(), {});
@@ -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>