Skip to content

Autocomplete self's attributes and methods #92

Closed
@echebbi

Description

@echebbi

Current behavior

The Xtext editor's autocomplete does not suggest anything (accurate) after typing self.:

Desired behavior

The editor autocompletes with the name of available attributes and methods.

Example

Given (| represents the cursor):

open class HelloWorld {

    @main
    def void main () {
        self.say|
    }

    def void sayHello() {
        'hello'.log();
    }
}

Hitting CTRL+Space would show available attributes/methods, and completes the code when the user selects one:

open class HelloWorld {

    @main
    def void main () {
        self.sayHello();|
    }

    def void sayHello() {
        'hello'.log();
    }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions