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()