Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -476,5 +476,11 @@ function isValidCompletion(
if (!isCompletionInHTMLStartTag) {
return () => true;
}
return (value) => !completionBlacklist.has(value.name);
return (value) =>
!completionBlacklist.has(value.name) &&
// remove attribues starting with "on" because those are events.
// Svelte wants events of the form "on:X", but the suggestions
// are of the form "onX". Moreover, they are doubled by the HTML
// attribute suggestions. Therefore filter them out.
!value.name.startsWith('on');
}