Skip to content

Commit

Permalink
fix(language-core): copy destructured props instead of referencing
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Nov 2, 2024
1 parent 34e6982 commit ad85444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-core/lib/plugins/vue-tsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function createTsx(
return newNames;
});
const destructuredPropNames = computed<Set<string>>(oldNames => {
const newNames = scriptSetupRanges.get()?.props.destructured ?? new Set();
const newNames = new Set(scriptSetupRanges.get()?.props.destructured);
const rest = scriptSetupRanges.get()?.props.destructuredRest;
if (rest) {
newNames.add(rest);
Expand Down

0 comments on commit ad85444

Please sign in to comment.