maniascript vscode extension update v1.3.2

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.16

Post by reaby »

http://reaby.kapsi.fi/maniaplanet/vscod ... .2.16.vsix

Fixed alot of colorization problems for structs and as well enhanced overall colorization experience.
added helper: GetFirstChild, which is same as PageGet, without prefixes :)
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.17

Post by reaby »

http://reaby.kapsi.fi/maniaplanet/vscod ... .2.17.vsix

fixed circular reference from extension javascript.
changed variable resolving order:
struct var, delcared vars, context classes

added colorization and support for external structs:
externalstructs.PNG
externalstructs.PNG (15.91 KiB) Viewed 5318 times
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.18

Post by reaby »

http://reaby.kapsi.fi/maniaplanet/vscod ... .2.18.vsix

changelog:
fixes autocomplete on arraymethod: .existkey()
fixes autocomplete on variables inside []-brackets, when no whitespace character.
fixes `literal-for` colorization, rule was missing since added `operator-for` notation before.
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.19

Post by reaby »

http://reaby.kapsi.fi/maniaplanet/vscod ... .2.19.vsix

extend xml files to support maniascript blocks :)
NOTICE: i couldn't get the regexp to match multilines for script block.... so please use the xml comment with same line than script tag.
examples:

Code: Select all

<quad />
<script><![CDATA[

	// your maniascript here

]]></script>

*or*
<quad />
<script><!--
	
	// your maniascript here

--></script>

Last edited by reaby on 19 Dec 2019, 20:24, edited 1 time in total.
User avatar
BigBang1112
Posts: 388
Joined: 20 Jul 2015, 12:44
Location: Czech Republic
Contact:

Re: maniascript vscode extension update v1.2.19

Post by BigBang1112 »

Great job dude :1010
Creator and competent racer. YouTube Discord
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
Darrek
Nadeo
Nadeo
Posts: 7
Joined: 24 Oct 2018, 11:43

Re: maniascript vscode extension update v1.2.19

Post by Darrek »

Thank you for your work, it's great ! :1010
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.19

Post by reaby »

Great to hear you like it :)

Feels very good and at the same time somewhat weird to get this much of thanks! I've only contributed some patches to the initial work done by @tonechild and @noomaok. For me it would have been impossible to create something like this from zero :)

Maniascript support for XML files has though still some minor issues, i'll try to see if autocomplete can be made working better at Embeded script blocks as well. I noticed lately that some of the declares aren't properly autocompleted :/ Needs still work, but is great help already :)
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Maniascript vscode extension update v1.2.20

Post by reaby »

http://reaby.kapsi.fi/maniaplanet/vscod ... .2.20.vsix

Changelog
Updated build-in support class completions to latest maniaplanet doc.h.
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.21

Post by reaby »

New version at http://reaby.kapsi.fi/maniaplanet/vscod ... .2.21.vsix

ChangeLog
Now it's possible to load external doc.h, so in case of future updates no need to generate the apidocs and release a new update.

Add following line to your vscode setttings.json (can be accessed from File->Preferences->Settings->Extensions->ManiaScript)
Remember to include the filename as well for doc.h, this is to have more versatile support, incase you wish to name it differently :)

Code: Select all

{
"conf.maniascript.apiDocPath": "D:\\your\\path\\to\\doc.h"
}
It should work as soon as you change tab back to maniascript file, if not, restart vscode.

The doc.h parser is at first version currently, and may produce still parse errors.
In case you lose autocompletions, the parsing has failed most likely:
You can check then "ctrl+p --> show developer tools -> console" for error messages.
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.22

Post by reaby »

New version: http://reaby.kapsi.fi/maniaplanet/vscod ... .2.22.vsix

ChangeLog
Enhanced doc.h loader, empahsis it should now work :)
Enhanced syntax highlighter colors to match better other languages at vscode...
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest