From 2b088a76cedd6d1c2f9dbc1dd51260d1a043e0ff Mon Sep 17 00:00:00 2001 From: fofolee Date: Fri, 26 Jan 2024 12:46:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=95=BF=E5=BA=A6=E8=B6=85?= =?UTF-8?q?=E5=87=BA=E9=80=89=E4=B8=AD=E5=AF=B9=E8=B1=A1=E7=9A=84=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E6=97=B6=EF=BC=8C=E7=B4=A2=E5=BC=95=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=BA0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .vscode/settings.json | 25 +++++++------------- src/components/quickcommandUI/SelectList.vue | 1 + 3 files changed, 11 insertions(+), 16 deletions(-) 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); },