diff --git a/CHANGELOG.md b/CHANGELOG.md index c83f34d..1d0bd27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 --> -## [Unreleased] +## 1.0.7 ### Added diff --git a/README.md b/README.md index b9eea3a..f93c017 100644 --- a/README.md +++ b/README.md @@ -36,9 +36,9 @@ Or right-click on the selected text -> Convert string to... #### 3. 选择转换目标,转换完成
Select the conversion target and complete -## 支持的类型 +## 支持的类型 Support Case -| 类型 | Type | 举例 e.g. | +| 类型 | Case | 举例 e.g. | | ----------------------------------- | ------------------------ | ---------------- | | 小驼峰(驼峰)命名 | Camel Case | fooBar | | 大驼峰(帕斯卡)命名 | Pascal Case | FooBar | @@ -50,6 +50,10 @@ Or right-click on the selected text -> Convert string to... | 连字符(脊柱式) + 小驼峰(驼峰)命名 | Kebab Camel Case | foo-Bar | | 连字符(脊柱式) + 大驼峰(帕斯卡)命名 | Kebab Pascal Case | Foo-Bar | | 连字符(脊柱式) + 全大写命名 | Kebab Upper Case | FOO-BAR | +| 空格分隔命名 | Space Case | foo bar | +| 空格分隔 + 小驼峰(驼峰)命名 | Space Camel Case | foo Bar | +| 空格分隔 + 大驼峰(帕斯卡)命名 | Space Pascal Case | Foo Bar | +| 空格分隔 + 全大写命名 | Space Upper Case | FOO BAR | | 全小写 | Lower Case | foo_bar / foobar | | 全大写 | Upper Case | FOO_BAR / FOOBAR | diff --git a/package-comment.jsonc b/package-comment.jsonc index 362fbae..1badcc5 100644 --- a/package-comment.jsonc +++ b/package-comment.jsonc @@ -2,9 +2,9 @@ // 插件 id 及名称 "name": "variable-conversion", "displayName": "Variable Conversion", - "description": "一个强大的变量名转换插件,支持右键菜单、快捷键、底栏等多种方式使用,支持小驼峰、大驼峰(帕斯卡)、下划线(蛇形)、连字符(脊柱式)、全小写、全大写等常用命名方式(及组合)转换。 \nA powerful variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar. Support camel, pascal, snake, kebab(spinal), lower, upper case, and more.", + "description": "一个强大的变量名转换插件,支持右键菜单、快捷键、底栏等多种方式使用,支持小驼峰、大驼峰(帕斯卡)、下划线(蛇形)、连字符(脊柱式)、空格分隔、全小写、全大写等常用命名方式(及组合)转换。 \nA powerful variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar. Support camel, pascal, snake, kebab(spinal), space, lower, upper case, and more.", // 版本号 - "version": "0.0.6", + "version": "1.0.7", // logo "icon": "image/logo.png", "publisher": "coder-xiaomo", diff --git a/package.json b/package.json index c6009e8..3506cba 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "variable-conversion", "displayName": "Variable Conversion", - "description": "一个强大的变量名转换插件,支持右键菜单、快捷键、底栏等多种方式使用,支持小驼峰、大驼峰(帕斯卡)、下划线(蛇形)、连字符(脊柱式)、全小写、全大写等常用命名方式(及组合)转换。 \nA powerful variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar. Support camel, pascal, snake, kebab(spinal), lower, upper case, and more.", - "version": "0.0.6", + "description": "一个强大的变量名转换插件,支持右键菜单、快捷键、底栏等多种方式使用,支持小驼峰、大驼峰(帕斯卡)、下划线(蛇形)、连字符(脊柱式)、空格分隔、全小写、全大写等常用命名方式(及组合)转换。 \nA powerful variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar. Support camel, pascal, snake, kebab(spinal), space, lower, upper case, and more.", + "version": "1.0.7", "icon": "image/logo.png", "publisher": "coder-xiaomo", "engines": { diff --git a/src/extension-handler/quick-pick-handler.ts b/src/extension-handler/quick-pick-handler.ts index b184219..a384115 100644 --- a/src/extension-handler/quick-pick-handler.ts +++ b/src/extension-handler/quick-pick-handler.ts @@ -84,7 +84,7 @@ export function handleQuickPick() { let text = document.getText(selection); if (text.length === 0) { - vscode.window.showInformationMessage('Please select the variable you want to convert and try again.\n请选择需要转换的变量后重试'); + vscode.window.showInformationMessage('请选择需要转换的变量后重试\nPlease select the variable you want to convert and try again.'); return; }