diff --git a/CHANGELOG.md b/CHANGELOG.md index 04cc7ed..7e2fe7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,3 +12,7 @@ - feat: add dependency `change-case`, use these functions in `change-case` to transform query string. - refactor: change function name `@underline` to `@snake_case`. + +## 0.0.4 + +- fix: Chinese be transformed to empty. diff --git a/package-lock.json b/package-lock.json index 6f1c8da..3b8dab7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "case-search", - "version": "0.0.3", + "version": "0.0.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 40d3ec2..1b75edc 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "case-search", "displayName": "Case Search", "description": "A VS Code search extension based on native search component.", - "version": "0.0.3", + "version": "0.0.4", "engines": { "vscode": "^1.40.0" }, diff --git a/src/extension.ts b/src/extension.ts index 183cc79..c0ec77d 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -75,7 +75,7 @@ export function activate(context: ExtensionContext) { } if (query) { - commands.executeCommand("workbench.action.findInFiles", { query: transformQuery2RegExp(query, scope), triggerSearch: true, isRegex: true, isCaseSensitive: true }); + commands.executeCommand("workbench.action.findInFiles", { query: transformQuery2RegExp(query, scope) || query, triggerSearch: true, isRegex: true, isCaseSensitive: true }); quickPick.hide(); } });