CatarinaGamboa / liquidjava

32 stars 1 forks source link

Autocomplete suggestions with states and `(this)` #26

Open CatarinaGamboa opened 1 year ago

CatarinaGamboa commented 1 year ago

Why

When writing the state refinements it is helpful to have shortcuts to write the state we intend. Therefore, liquidjava could provide a list of states to help in the autocomplete.

This issue involves this repo and vscode-liquidjava.

Steps

  1. In vscode-liquidjava check the type of information required by the autocomplete invocation.
  2. Currently, liquidjava (as server) is invoked through CommandLineLauncher.launch(...) from the vscode-liquidjava and it returns only ErrorEmitter with information for identifying and reporting the error message. The return should be changed to another object that includes the error message and additional information.
  3. This additional information should include the states for each class so that they can be retrieved from the vscode-liquidjava side and sent to the client editor.