refactor(debugger): refactor debugger plugin (#5213)

This commit is contained in:
白熱
2025-05-17 00:20:54 +08:00
committed by GitHub
parent f53819050f
commit e21dd65082
57 changed files with 935 additions and 1294 deletions
+8 -2
View File
@@ -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
+1
View File
@@ -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,
},
-1
View File
@@ -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],