mirror of
https://github.com/dream-num/univer.git
synced 2026-09-24 15:32:18 +08:00
refactor(debugger): refactor debugger plugin (#5213)
This commit is contained in:
@@ -72,10 +72,16 @@ univer.registerPlugin(UniverDocsQuickInsertUIPlugin);
|
||||
|
||||
if (!IS_E2E) {
|
||||
univer.createUnit(UniverInstanceType.UNIVER_DOC, DEFAULT_DOCUMENT_DATA_SIMPLE);
|
||||
univer.registerPlugin(UniverDebuggerPlugin);
|
||||
} else {
|
||||
univer.registerPlugin(UniverDebuggerPlugin, {
|
||||
fab: false,
|
||||
performanceMonitor: {
|
||||
enabled: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
univer.registerPlugin(UniverDebuggerPlugin);
|
||||
|
||||
// use for console test
|
||||
declare global {
|
||||
// eslint-disable-next-line ts/naming-convention
|
||||
|
||||
@@ -138,6 +138,7 @@ function createNewInstance() {
|
||||
// If we are running in e2e platform, we should immediately register the debugger plugin.
|
||||
if (IS_E2E) {
|
||||
univer.registerPlugin(UniverDebuggerPlugin, {
|
||||
fab: false,
|
||||
performanceMonitor: {
|
||||
enabled: false,
|
||||
},
|
||||
|
||||
@@ -29,7 +29,6 @@ const IS_E2E: boolean = !!process.env.IS_E2E;
|
||||
|
||||
export default function getVeryLazyPlugins() {
|
||||
const plugins: Array<[PluginCtor<Plugin>] | [PluginCtor<Plugin>, unknown]> = [
|
||||
|
||||
[UniverActionRecorderPlugin],
|
||||
[UniverSheetsHyperLinkUIPlugin],
|
||||
[UniverSheetsSortUIPlugin],
|
||||
|
||||
Reference in New Issue
Block a user