Skip to content

[feat] Code Completion on all members at the class root #277

Description

@DarkGhostHunter

Description

This is more a nitpick than a feature.

It would be great to have code completion for overridable class members from the get go, instead of writing public fun.. or pub $fo....

For example:

class UserProfile
{
    public string $name;
    
    o█
   ┌─────────────────────────────────────────────────────────────┐
   │ 🔧 $override                        Property (string)       │
   │ 🔧 $oneTimeToken                    Property (?string)      │
   │ ⚡ overture()                       Method   (void)         │
   │ ⚡ onInitialize()                   Method   (void)         │
   │ ⚡ onChange(callable $callback)    Method   (self)          │
   └─────────────────────────────────────────────────────────────┘
   │ Tab/Enter: Accept  |  ↑/↓: Navigate  |  Esc: Dismiss        │
   ───────────────────────────────────────────────────────────────
}

Dunno if the engine is capable of it.

Use case

When writing a class that extends another class, trait or interface, expecting implementing abstract methods or overridable members, without having to guess the visibility.

Proposed solution

No response

Alternatives considered

No response

Code example

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions