Skip to content

Commit

Permalink
refactor: renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Dec 14, 2024
1 parent e169f20 commit 9099456
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/language-service/lib/plugins/vue-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,12 +714,12 @@ export function create(
}

const [text, ...modifiers] = replacement.text.split('.');
const isEvent = text.startsWith('v-on:') || text === 'v-on' || text.startsWith('@');
const isProp = text.startsWith('v-bind:') || text === 'v-bind' || text.startsWith(':');
const isModel = text.startsWith('v-model:') || text === 'v-model';
const isVOn = text === 'v-on' || text.startsWith('v-on:') || text.startsWith('@');
const isVBind = text === 'v-bind' || text.startsWith('v-bind:') || text.startsWith(':');
const isVModel = text === 'v-model' || text.startsWith('v-model:');
const validModifiers =
isEvent ? eventModifiers
: isProp ? propModifiers
isVOn ? eventModifiers
: isVBind ? propModifiers
: undefined;

if (validModifiers) {
Expand Down Expand Up @@ -749,7 +749,7 @@ export function create(
completionList.items.push(newItem);
}
}
else if (isModel) {
else if (isVModel) {

for (const modifier of modelData.globalAttributes ?? []) {

Expand Down

0 comments on commit 9099456

Please sign in to comment.