Skip to content

Commit 1a6abb3

Browse files
author
昊天
committed
修复注释
1 parent 60a7bd8 commit 1a6abb3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/helpers/extensionConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type ExtensionSettings = {
77
typescript: boolean;
88
typescriptPropsStatePrefix: 'type' | 'interface';
99
};
10-
// 获取项目空间的配置信息
10+
// 获取工作空间的配置信息
1111
const extensionConfig = () =>
1212
workspace.getConfiguration(
1313
'reactSnippets.settings',

src/helpers/formatters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const formatSnippet = (snippetString: string/**传入的代码片段信
1212
? prettier.format(snippetString, getPrettierConfig())
1313
: snippetString;
1414
};
15-
// 介些代码片段
15+
// 解析代码片段
1616
export const parseSnippet = (body: string | string[]) => {
1717
// 数组转化成字符串,以\n进行换行
1818
const snippetBody = typeof body === 'string' ? body : body.join('\n');

0 commit comments

Comments
 (0)