Skip to content

Commit

Permalink
fix: : in text get prompter
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Jul 23, 2024
1 parent 9f5a97e commit 091f1ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 091f1ad

Please sign in to comment.