From 2c6e4a62cb1b06b7645e31b290dcc4285d82dbda Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 14 Apr 2022 17:01:11 +0800 Subject: [PATCH] chore: upate some code comment (#834) --- packages/core-browser/src/react-providers/config-provider.tsx | 4 ++-- packages/storage/src/browser/storage.service.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/core-browser/src/react-providers/config-provider.tsx b/packages/core-browser/src/react-providers/config-provider.tsx index 5022b93075..9ffdde3c83 100644 --- a/packages/core-browser/src/react-providers/config-provider.tsx +++ b/packages/core-browser/src/react-providers/config-provider.tsx @@ -81,12 +81,12 @@ export interface AppConfig { wsPath: string; /** * 定义 IDE 各个布局区块默认加载的模块,可针对性对模块进行增删改 - * 默认值可参考:https://github.com/opensumi/core/tree/main/packages/main-layout/lib/browser/default-config.tsx + * 默认值可参考:https://github.com/opensumi/core/tree/58b998d9e1f721928f576579f16ded46b7505e84/packages/main-layout/src/browser/default-config.ts */ layoutConfig: LayoutConfig; /** * 定义 IDE 的整体布局,可以通过传入自定义布局的方式定义各个区块的默认大小及缩放选项等 - * 默认值可参考:https://github.com/opensumi/core/tree/main/packages/startup/entry/web-lite/modules/view/custom-layout-component.tsx + * 默认值可参考:https://github.com/opensumi/core/blob/58b998d9e1f721928f576579f16ded46b7505e84/packages/core-browser/src/components/layout/default-layout.tsx */ layoutComponent?: React.FC; /** diff --git a/packages/storage/src/browser/storage.service.ts b/packages/storage/src/browser/storage.service.ts index 1f0a278d5d..5f9c5c1b13 100644 --- a/packages/storage/src/browser/storage.service.ts +++ b/packages/storage/src/browser/storage.service.ts @@ -123,7 +123,9 @@ export class WorkspaceStorageServer extends StorageServer { try { items = JSON.parse(data.content.toString()); } catch (error) { - this.logger.error(`Storage [${storageName}] content can not be parse. Error: ${error.stack}`); + this.logger.error( + `Storage [${storageName}] content can not be parse with path ${uriString}. Error: ${error.stack}`, + ); items = {}; } }