Skip to content

Commit

Permalink
feat: make cursor inside quotes when insert missing required props edit
Browse files Browse the repository at this point in the history
close #2414
  • Loading branch information
johnsoncodehk committed Feb 24, 2023
1 parent 9920e91 commit d99e237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-language-service/src/plugins/vue-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default function useVueTemplateLanguagePlugin<T extends ReturnType<typeof
start: document.positionAt(current.insertOffset),
end: document.positionAt(current.insertOffset),
},
newText: ` :${casing.attr === AttrNameCasing.Kebab ? hyphenate(requiredProp) : requiredProp}=""`,
newText: ` :${casing.attr === AttrNameCasing.Kebab ? hyphenate(requiredProp) : requiredProp}=`,
}],
});
}
Expand Down

0 comments on commit d99e237

Please sign in to comment.