Even with a simple editor-complete rule like:

editor-complete:
    (node, position, ast, path, project-path) -> ["bla"]

the “bla” proposal is not shown when performing code completion at the | symbol in the following program:

class A {
    A| a;
}

The console output when triggering completion is:

Semantic completion nodes: [Type(COMPLETION(""){Use(Result("519"))})]
Accepted syntactic constructs: []

Warning missing sorts: []

Interestingly enough, “bla” is shown when completion is triggered here:

class A {
    |A a;
}

The console output is:

Semantic completion nodes: [Type(COMPLETION(""){Use(Result("521"))}), Type(COMPLETION(""){Use(Result("522"))})]
Accepted syntactic constructs: []

Warning missing sorts: []
Submitted by Gabriël Konat on 7 January 2013 at 13:35

On 7 January 2013 at 13:35 Gabriël Konat tagged completion

On 7 January 2013 at 17:24 Gabriël Konat commented:

This is actually intended behaviour, because code completion internally does not show names that do not match the identifier that is being completed.


On 7 January 2013 at 17:24 Gabriël Konat closed this issue.

Log in to post comments