1. Are you planning to upload your awesome tool to Hive? Please review the rules here.
    July 9, 2018: The rules for the Tool Section have been revised. Please be sure to read the revisions.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  5. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  6. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

vjass support extension for Visual Studio Code

Submitted by Faked Weiss
This bundle is marked as approved. It works and satisfies the submission rules.
# 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:
[​IMG]

references:
[​IMG]

definition:
[​IMG]

hover:
[​IMG]


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


# Change Log

  • 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.
  1. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,816
    Resources:
    17
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    17
    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?
     
  2. Faked Weiss

    Faked Weiss

    Joined:
    Feb 23, 2018
    Messages:
    6
    Resources:
    1
    Tools:
    1
    Resources:
    1
    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
     
  3. 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
     
  4. Faked Weiss

    Faked Weiss

    Joined:
    Feb 23, 2018
    Messages:
    6
    Resources:
    1
    Tools:
    1
    Resources:
    1
    I will try to add this feature in the future ~
     
  5. yatyfornetreg

    yatyfornetreg

    Joined:
    Jun 28, 2009
    Messages:
    41
    Resources:
    0
    Resources:
    0
    jasshelper itself should be able to do the work.

    Code (Text):
    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
     
  6. izaiphovias

    izaiphovias

    Joined:
    Jun 19, 2009
    Messages:
    359
    Resources:
    4
    Maps:
    4
    Resources:
    4
    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?
     
  7. eejin

    eejin

    Tool Moderator

    Joined:
    Mar 6, 2017
    Messages:
    153
    Resources:
    1
    Tools:
    1
    Resources:
    1
    Approved! An excellent tool for vJass highlighting and autocompletion. Adding the new natives would be nice though.
     
  8. Faked Weiss

    Faked Weiss

    Joined:
    Feb 23, 2018
    Messages:
    6
    Resources:
    1
    Tools:
    1
    Resources:
    1
    have a try with version of 0.0.93
     

    Attached Files:

  9. izaiphovias

    izaiphovias

    Joined:
    Jun 19, 2009
    Messages:
    359
    Resources:
    4
    Maps:
    4
    Resources:
    4
    Awesome! Works like a charm now. Thank you.
     
  10. chopinski

    chopinski

    Joined:
    May 16, 2012
    Messages:
    291
    Resources:
    1
    Spells:
    1
    Resources:
    1
    where do i put the vsix file in order to update it?
     
  11. Faked Weiss

    Faked Weiss

    Joined:
    Feb 23, 2018
    Messages:
    6
    Resources:
    1
    Tools:
    1
    Resources:
    1
    You mean how to install the vscode extension from the vsix file downloading here ?
    As shown in the picture below, although I am using the Chinese version of vscode, I can still explain it to you. Just click the menu at 'Extensions' bar, and then click the 'install from vsix file' button.
    upload_2020-3-30_19-32-56.png
     
  12. GhostHunter123

    GhostHunter123

    Joined:
    Oct 17, 2012
    Messages:
    472
    Resources:
    1
    Spells:
    1
    Resources:
    1
    @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.
     

    Attached Files:

    • common.j
      File size:
      343.8 KB
      Views:
      21
  13. Faked Weiss

    Faked Weiss

    Joined:
    Feb 23, 2018
    Messages:
    6
    Resources:
    1
    Tools:
    1
    Resources:
    1
    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.
     
  14. Zwiebelchen

    Zwiebelchen

    Joined:
    Sep 17, 2009
    Messages:
    6,873
    Resources:
    12
    Models:
    5
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    JASS:
    4
    Resources:
    12
    @Faked Weiss Version 0.1.0 and 0.1.1 do not show regular natives in the auto complete list. Instead they ONLY show recently added natives.

    version 0.93 worked correctly in that regard.