appsmithorg / appsmithorg/appsmith

[Feature]: Show Evaluated values for global object in JS Editor

Aperta
#9,110 0 commenti 0 reazioni 5 assegnatari Rivendicata da @nerbos Vedi su GitHub
Enhancement Evaluated Value Javascript Product Query & JS Pod Query Widgets & IDE Pod
Lingua principale
TypeScript
Stelle
40.9k
Fork
4.8k
Merge medio
1g 22h
PR unite (30g)
45

Descrizione

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Summary

The objective of this feature is to enable the users to view the evaluated values of global variables referenced on JS editor. Currently the JSeditor watch window only lists the local functions and variables that have been created in the file. There is no way to view the evaluated value of the global variables that are being referenced in the file.

**What’s in scope?**

- Display the evaluated value of the global variables referenced in the JS Object.
- Being able to show the evaluated value of the variable while the user is typing code. Using autocomplete to show evaluated value of the selected variable.
- User will be able to view the evaluated value of a variable when they hover over the variable name.
- Displaying evaluated value using a floating window will be the default behavior. Users can disable this using a switch on the window. Once disabled the users can view the evaluated value using hot keys and enable this behavior again.
- Users can also pin down the variables that they like, which will show up in the watch window under the variables section.

### Why should this be worked on?

Currently the watch window for the JS editor only shows values of local variables of the file as well the list of functions inside file there is no way to look at the evaluated values of the global variables that we being referenced. To create a better code writing experience, its necessary to be aware of the values of all the variables that are being referenced.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.