BowlerHatLLC / BowlerHatLLC/vscode-as3mxml

Completion: list events from [Event] metadata for first argument of addEventListener() calls

Open
#362 2 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
282
Forks
45
PR merge metrics
No merged PRs in 30d

Description

When completion is triggered here:

```
sprite.addEventListener(
------------------------^
```

The completion engine should recognize that it's an `addEventListener()` call and add items for each of the events defined with `[Event]` metadata in the class (and in all superclasses, of course).

Would also make sense for `removeEventListener()`, `hasEventListener()`, and `willTrigger()`.

Contributor guide

Open the contributing guide

Research direction

Start in the completion engine at the argument position shown for addEventListener() and trace how class metadata and superclass information are available. Extend the event completion behavior to addEventListener(), then assess the same behavior for removeEventListener(), hasEventListener(), and willTrigger(); done means [Event] entries from the class hierarchy are offered.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.