Skip to content

Completions not working in templates with errors & other situations #49

@dragos

Description

@dragos

Completions don't work at the end of a @ section, or with unmatched braces:

@(message: String, user: User)

@main("Welcome to Play 2.1") {
  <p>My name is: @{user.}</p>
  <p>@user.</p> // no completion at all
  @user. // Scope completion instead of member completion

There are several causes:

  • the partitioner makes an off-by-one mistake (adding a space before the closing tag fixes it)
  • the template compiler throws exceptions for syntax errors
  • the logic for selecting scope-completion over member completion misfires

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions