eyza-cod2 / vscode-cod-gsc

Extension for VS Code for GSC scripts used in Call of Duty games
GNU General Public License v3.0
15 stars 0 forks source link

Yay new update :D #5

Open Xeirh opened 1 month ago

Xeirh commented 1 month ago

Really enjoying the new features. Um currently still having issues with the parser not liking the conditions and newer array type that isn't supported that is normally used inside iw titles.

Behold My Example Screenshot 2024-09-15 101057

Few user interface bugs but nothing crazy annoying.

Anything I messed with for a few minutes was done inside a workspace, with the universal settings enabled and it's pretty damn noice.

eyza-cod2 commented 1 month ago

Im planning to implement these syntax features in future, right now i was focusing on CoD2 and workspace folder support.

Which game are u coding for? Is it Aurora mod?

Would be interested which interface bugs you encounter, would be happy to fix them

Xeirh commented 1 month ago

Currently right now H1M/Aurora and the H2M-M, one of the bugs is when right clicking over errors and viewing the problem the ui box that get created sometimes won't close out when clicking the close button on the top right and requires the file to be fully closed out and reopened, and sometimes get an error for the extension in the bottom right even when diagnostics is disabled <<< which is really cool that we can now toggle this on, and the ignoring included files and functions is also super cool, a lot cleaner and the errors when you do get them isn't nowhere near as annoying.

eyza-cod2 commented 1 month ago

Thats weird because for me the error box is showed only when i hover over the error, i dont have to right click. Maybe a screenshot would be helpfull.

This is how it behaves for me: image

If you got an error in right buttom corner, there is an button to report it, please send me content of that if that happends again

ineedbots commented 1 month ago

[ <array>, <array> ] isn't canon syntax, gsc-tool adds its for syntactic sugar (it wasn't in MW3 or below, can't say about Ghosts or above)

ternaries wasn't added to the language until BO2, gsc-tool again back ports the syntax

https://github.com/xensik/gsc-tool/tree/dev/src/gsc

eyza-cod2 commented 1 month ago

Added a support for foreach and ternary