Skip to content

Commit

Permalink
fix(typescript-plugin): update component names correctly for the firs…
Browse files Browse the repository at this point in the history
…t time
  • Loading branch information
KazariEX committed Feb 3, 2025
1 parent b580b43 commit a2abd0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typescript-plugin/lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export async function startNamedPipeServer(
connection.on('error', err => console.error('[Vue Named Pipe Server]', err.message));

for (const [fileName, [componentNames, componentProps]] of currentData) {
notify(connection, 'componentNamesUpdated', fileName, Object.keys(componentNames));
notify(connection, 'componentNamesUpdated', fileName, componentNames);

for (const [name, props] of Object.entries(componentProps)) {
notify(connection, 'componentPropsUpdated', fileName, [name, props]);
Expand Down

0 comments on commit a2abd0a

Please sign in to comment.