Skip to content

Commit 3fac8f4

Browse files
committed
fix(typescript-plugin): prevent removed components from appearing in the completion list
1 parent 63e6f51 commit 3fac8f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/typescript-plugin/lib/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ class NamedPipeServer {
169169
name: string,
170170
props: ComponentPropInfo[],
171171
] = data;
172-
components[name] = props;
172+
if (name in components) {
173+
components[name] = props;
174+
}
173175
}
174176
else {
175177
console.error('Unknown notification type:', type);

0 commit comments

Comments
 (0)