Skip to content

Commit

Permalink
chore: upate some code comment (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
erha19 authored Apr 14, 2022
1 parent 1659742 commit 2c6e4a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/core-browser/src/react-providers/config-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down
4 changes: 3 additions & 1 deletion packages/storage/src/browser/storage.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
}
}
Expand Down

0 comments on commit 2c6e4a6

Please sign in to comment.