lolow / gams

GAMS language for Visual Studio Code
Apache License 2.0
4 stars 2 forks source link

Providing declaration text when hovering GAMS sets/parameters/variables. #6

Open lolow opened 9 months ago

lolow commented 9 months ago

Proposition from @derevirn:

we are working on a GAMS model with numerous sets, variables and equations. It can be daunting to memorize all of them, so I'm wondering whether it's possible to improve the GAMS extension functionality. For example, it would be extremely helpful to show the declaration text when hovering the mouse cursor on a set/variable/equation.

I think that would be very helpful indeed. I guess this would require to develop a language server that analyzes code in the background, as explained here: https://code.visualstudio.com/api/language-extensions/programmatic-language-features. I should explore a bit how to implement it. Any help is welcome!

chrispahm commented 9 months ago

Hey, just stumbled upon this issue! I'm working on this kind of functionality over here: https://github.com/chrispahm/gams-ide gams-ide in vscode It's still early days, so there will be a few bugs here and there. If you're interested give it a try, also happy about contributions!

lolow commented 9 months ago

Looks great, I would definitely give a try. I don't have high priority plan to develop the GAMS vs extension, keeping it as simple as possible.