From 091f1add4d897c6d557db54f5e3d8f8e7c307cb7 Mon Sep 17 00:00:00 2001 From: Simon He <57086651+Simon-He95@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:11:43 +0800 Subject: [PATCH] fix: : in text get prompter --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index f142ecb2..50ace1ca 100644 --- a/src/index.ts +++ b/src/index.ts @@ -257,6 +257,9 @@ export function activate(context: vscode.ExtensionContext) { const result = parser(document.getText(), p) if (!result) return + if (position.active === ':' && result.type === 'text') { + return + } const lan = getActiveTextEditorLanguageId() const isVue = lan === 'vue' && result.template const code = getActiveText()