Skip to content

Completion - Expression extraction #13

@MartTave

Description

@MartTave

For now, the completion system extract the current 'expression' by splitting the current line from last space to current cursor position, and then split on each '.' char to get each part of the current 'expression'
Example :

  let res = a.m2.m1.<cursor position>
  // This becomes -> "a.m2.m1." and then -> ["a", "m2", "m1"]

This is a temporary solution and it has many shortcomings. I think that we should be able to get the closest AST node directly, and then work from here to get to the same point. This would enable us to have a single parsing method, which is the right way to go

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