• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

vjass support extension for Visual Studio Code

# Abstract
I made an extension for the coders who wants to use jass or vjass on the Visual Studio Code. The latest version of this extension is 0.1.0, I've made a lot of coooool features of this extension. Enjoy the extension. If you find any bugs or you have any questions of this extension, just contact me.

# Some ScreenShots
completion:
S-pB4fOo22RP9KIWBrvimppWfQ0_ee8D5RqIgU2SqbKR3D0gupUC_oDfB_7gIKW9RR_XHBYci5pMBD6Wt501JmAtDVu9Y9T0kuD-zBRhoMGz65JgoaGbNxxOToYTO_N8-5CDYTJwm-i54F7JgPEiIoCktb-q0sMLh7PDIwteZMIHopeRVcO1aSmDec49rmHT85Gviho2bF29hdSxBQ6eTsOwFleK3BWPs2j8HqYZCJXIz9bKgtliU9B9qOweuKA6eGNUvMm5mgPCVVXGfd8UzKEs1Ri5JcYIDR8702XvPKxNhxHBWs6t_m6l8QwVHOXH-6ti8zFfTDIu4OCYInnO2NQpD7BVS6FlR7t7oOZnakOS1pgeozaiFmFhNmXF3sw7Oi2_4yLewHwHpmXo8DUUOMRDggrPB03L_sxwfLWTBapeCahp_q8cwg-gq2V-kIbQl9wGjSq-q85hik8ivYa8KCJSNzdvwbQYRPHsYD35tPLhxDIADGV6APJMRWAK2RlLVjouFpO0Fi63TlwLaQBKenOx8kp58U_aF0yJ4hlt-nCLyWMpMBHwGATq6oHtX-H093FBpD7FPEatscpjvhEkVd0j1D6sVXwcN_2yIfI3n4QnKytA298muQXRr2aoUEug2ltFv6rsFIDhg_gfDoxSGIVaWjr6ivs=w1187-h398-no


references:
TT7GQ772QQJXdaezC0Ny2ouvuE0ik2mNvjfOtSZdD3ghejaTNOsJCE2TXN37m8nq2xxXpRzKnTEUCyhjQvmp9P7_J9vLzhSmP-XU-bs0OTPtZir2Hm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MEQvA38RzVGheHXPOcRwkCe7NJ3Qm7kCpj8D1T8APMH0DEyaQXgNYcd41ZYBv7ynCN4ME2nDY67u09UG-tNwcVn0HuLMoOxCuVwV-piFO-qa_XA=w2026-h310-no


hover:
dJTc9qzTIHDMdf7y7GFxmbhpt0_Uf-i2yLN5CT08iR_TuYK8hfPSCZecfm4InSqW5Jsm8_-JOf9dL6pGq-7OMgCQ7h_FbSdxReGFzPMkjFEUWxVZF-SY5BMm-R1hoxks_3U8uxdjL7eEBNGPBdj74Gn1qN65eu22fkjEJ_6cD7Tt7Te7gZv6vRT6oWTR2lbN5m0wnhtShFuuRQYligAm26zu_Ey1TTqJfk_oT0zwVO7fW__kjqejOs8YxJ1Ee0-ESFjk0enKmCIY0fNhwS1pQCOGbQuChyLmJOce8BLhk7HE1aC2e9nbfWBOUW2jihnMUSBOF5ee2L7_4dGOmIhm3u_bTEm8WcueGM5MtHkJPvEc0qyQ00HqLyXK_40VLR78rVIE0zho_sqwJwT9laQgqNyntVVj1eWk5ubFbBVBGdbeYs3v1oc0ue08QMPPG0YF8WyR0-zisMOQpwPL6tdqz08lFACthHU3kyiwNKVUmPUfKymgfg3HxIv7LsyCzJrfd4LjwME-XjYuNs7Vws8pGqO3WXSxyXKzaqOmqfEFb_ZnsolKhLhmZEkdJIslsq6CVW-fovuFQ6adnBw-i0v_xyu9wEAYW-aIQNvs3Q=w592-h129-no



# Useful Links
github: GitHub - FakedWeiss/awesome-vjass-support
vscodepage: awesome vjass support - Visual Studio Marketplace


# Change Log

  • 0.1.1
  • fix package problem that made the extension active failed.
  • 0.1.0
  • Add 1.31 natives, constants, and types from common.j.
  • 0.0.9
  • fixed a bug that completion won't work when jass file has been edited;
    improving of color highlighting and language snippets.
  • 0.0.8
  • bugs fixed; refactoring reference provider; add .allocate .create .destroy .execute .evaluate to completion provider.
  • 0.0.7
  • fixed a bug in symbol provider.
  • 0.0.6
  • now the intellisense features works by searching over the whole jass files in the workspace
  • 0.0.5
  • fixed some bugs caused by the pattern in the variable regexp.
  • 0.0.4
  • added support for keywords and some japi functions in the feature completion provider.
  • 0.0.3
  • Fixed a bug in the feature completion and provider.
  • 0.0.2
  • Added features symbol provider, completion provider, definition provider, reference provider and hover provider.
  • 0.0.1
  • Added features of snippets and highlighting
Contents

vjass support extension for Visual Studio Code (Binary)

Reviews
eejin
Approved! An excellent tool for vJass highlighting and autocompletion. Adding the new natives would be nice though.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,182
Cool in theory, questionable in practice.

I am not saying the tool standalone is bad, but the workflow seems clunky without other additions.
For example, how do I test the map after I write code?

I write Wurst code in VS code and I need to use a runmap command to inject the code into my map, do you offer something similar here?
 
Level 3
Joined
Feb 23, 2018
Messages
8
Cool in theory, questionable in practice.

I am not saying the tool standalone is bad, but the workflow seems clunky without other additions.
For example, how do I test the map after I write code?

I write Wurst code in VS code and I need to use a runmap command to inject the code into my map, do you offer something similar here?
I have some plans. Maybe I will add something like jasshelper. But I didn't learn vscode plug-in for weeks. I was very unfamiliar with how to implement vscode's task. I think the most important thing now is to find some people to use this extension. After improving the existing features, I will think deeply about how to extend the vscode toolchain.
By the way there is a tool made by my friend which can pack / unpack Warcraft map. I think the tool is very nice. The binary files used by the world editor are converted to text format to facilitate the operation of version control, search, batch editing, contrast, and merger. You may need this tool in your workflow.
GitHub - syj2010syj/w3x2lni
 

Deleted member 219079

D

Deleted member 219079

This is some fuel for vJASS hipsters. I like it!

Can you add so that it shows the function declaration while within parenthesis of call to said function, like here:
upload_2018-3-17_13-43-47.png
 
Level 4
Joined
Jun 28, 2009
Messages
46
Cool in theory, questionable in practice.

I am not saying the tool standalone is bad, but the workflow seems clunky without other additions.
For example, how do I test the map after I write code?

I write Wurst code in VS code and I need to use a runmap command to inject the code into my map, do you offer something similar here?

jasshelper itself should be able to do the work.

Code:
copy your_map.w3x somewhere_else
jasshelper.exe common.j blizzard.j somewhere_else\your_map.w3x
"Warcraft III.exe" -window -loadfile full_path_to_your_copied_map.w3x

this batch basically
1. make a copy of your map
2. process the copied map with jasshelper
3. run war3 directly with your input map

check out my repo
1. set up environment variables for JassHelper path and Warcraft 3 path
2. make a directory under the project named "build"
3. click run.bat

you only need the vanilla WE, and a jasshelper, nothing else more.
if you had read the nodejs thing in my repo, just ignore it.

working well with 1.29

yatyricky/Zulaman-WE
 
Level 3
Joined
Feb 23, 2018
Messages
8
I know we will soon get Reforged and with it a new Editor that will probably support this, but while we're in the wait, do you plan on adding the new natives to this extension?

Approved! An excellent tool for vJass highlighting and autocompletion. Adding the new natives would be nice though.

have a try with version of 0.0.93
 

Attachments

  • awesome-vjass-support-0.0.93.zip
    4.6 MB · Views: 375
Level 3
Joined
Feb 23, 2018
Messages
8
@Faked Weiss The latest version does not have all the new natives, for instance the natives that deal with frames.
The attached file below has the new frame natives near the end of the script.
You can submit a pull request to my github repo and add the native functions you want. Since this extension is open source, it means that I will not always have the energy to maintain it myself, but look forward to the community to contribute.
 
Level 1
Joined
Jun 9, 2021
Messages
1
In my VSC, it only shows few of keywords and the functions that I've already typed in that file. VSC does not show all the possible functions in completion. Are there any ways to fix this?
 
Level 3
Joined
Feb 23, 2018
Messages
8
In my VSC, it only shows few of keywords and the functions that I've already typed in that file. VSC does not show all the possible functions in completion. Are there any ways to fix this?
Have a try with this plugin, as it's still being updated.
 
Top