diff --git a/.gitignore b/.gitignore index 0b4057a..6ba5930 100755 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ yarn-error.log* *.njsproj *.sln .vscode +.vscode/** diff --git a/.vscode/settings.json b/.vscode/settings.json index 8c947f1..e8c3590 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,18 +1,11 @@ { - "editor.bracketPairColorization.enabled": true, - "editor.guides.bracketPairs": true, - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.codeActionsOnSave": [ - "source.fixAll.eslint" - ], - "eslint.validate": [ - "javascript", - "javascriptreact", - "typescript", - "vue" - ], - "[vue]": { - "editor.defaultFormatter": "octref.vetur" - } + "editor.bracketPairColorization.enabled": true, + "editor.guides.bracketPairs": true, + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.codeActionsOnSave": ["source.fixAll.eslint"], + "eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"], + "[vue]": { + "editor.defaultFormatter": "Vue.volar" + } } diff --git a/src/components/quickcommandUI/SelectList.vue b/src/components/quickcommandUI/SelectList.vue index dfcfc39..4ada780 100644 --- a/src/components/quickcommandUI/SelectList.vue +++ b/src/components/quickcommandUI/SelectList.vue @@ -196,6 +196,7 @@ export default { setSubInput() { utools.setSubInput(({ text }) => { this.searchWords = text; + if (this.matchedItems.length < this.currentIndex + 1) this.currentIndex = 0 }, this.options.options.placeholder); },