Quantcast
Viewing all articles
Browse latest Browse all 1784

[feature-recuest] VSCode extension: show available variables within scope of cursor

You know when using Chrome debugger that you set a breakpoint and you see all the available data within that scope.

It would be helpful to have something similar in ReScript’s VSCode extension.
The user would click with the cursor on a line within a .res file and on the sidebar it would list all the identifiers available within the scope of the current function.

For an easy example

module Methods = {
   let x = 100
   
   let add = (a, b) => {
      a + b // set mouse cursor here
   }
}

By clicking on the line with a + b you would see in the outline x, a, b as available scope identifiers.


Viewing all articles
Browse latest Browse all 1784

Trending Articles