style(editor-app): 移除log信息

This commit is contained in:
yhh
2025-11-20 09:51:29 +08:00
parent 0d2948e60c
commit 8b9616837d
15 changed files with 4 additions and 164 deletions

View File

@@ -9,12 +9,10 @@ export class CompilerRegistry implements IService {
console.warn(`Compiler with id "${compiler.id}" is already registered. Overwriting.`);
}
this.compilers.set(compiler.id, compiler);
console.log(`[CompilerRegistry] Registered compiler: ${compiler.name} (${compiler.id})`);
}
unregister(compilerId: string): void {
this.compilers.delete(compilerId);
console.log(`[CompilerRegistry] Unregistered compiler: ${compilerId}`);
}
get(compilerId: string): ICompiler | undefined {

View File

@@ -82,18 +82,10 @@ export class FileActionRegistry implements IService {
* 处理文件双击
*/
async handleDoubleClick(filePath: string): Promise<boolean> {
const extension = this.getFileExtension(filePath);
console.log('[FileActionRegistry] handleDoubleClick:', filePath);
console.log('[FileActionRegistry] Extension:', extension);
console.log('[FileActionRegistry] Total handlers:', this.actionHandlers.size);
console.log('[FileActionRegistry] Registered extensions:', Array.from(this.actionHandlers.keys()));
const handlers = this.getHandlersForFile(filePath);
console.log('[FileActionRegistry] Found handlers:', handlers.length);
for (const handler of handlers) {
if (handler.onDoubleClick) {
console.log('[FileActionRegistry] Calling handler for extensions:', handler.extensions);
await handler.onDoubleClick(filePath);
return true;
}

View File

@@ -70,7 +70,6 @@ export class WindowRegistry implements IService {
return;
}
this.windows.set(descriptor.id, descriptor);
console.log(`[WindowRegistry] Registered window: ${descriptor.id}`);
}
/**
@@ -106,7 +105,6 @@ export class WindowRegistry implements IService {
return;
}
console.log(`[WindowRegistry] Opening window: ${windowId}`, params);
this.openWindows.set(windowId, {
descriptor,
isOpen: true,
@@ -119,7 +117,6 @@ export class WindowRegistry implements IService {
* 关闭窗口
*/
closeWindow(windowId: string): void {
console.log(`[WindowRegistry] Closing window: ${windowId}`);
this.openWindows.delete(windowId);
this.notifyListeners();
}