• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

vscode for jass

This bundle is marked as pending. It has not been reviewed by a staff member yet.
This is a nice VSCode Jass code plug-in.



20210625092151.png

function completion.
20210625091914.png

takes tips.
20210625091938.png


syntactic sugar. haha
%E5%8A%A8%E7%94%BB.gif


open source code.
Plug-in source
Contents

vscode for jass (Binary)

? Why not here in this thread where there's the big DOWNLOAD button image?
External sites might contain malware.
that's literally the official VSCode Marketplace tho what you mean? if you click the install button there it literally just prompts you to open the link in VSCode which just takes you straight to the Extension in the Extensions tab in VSCode
 
Hello, I'm having an issue with the error checking with array size constructor


The plug-in shows error in this code "error token '['", but it compiles without problem inside the map editor
JASS:
struct QuestType
    quest array questArray[1]
endstruct


This code without size does not show error inside VS code BUT in map editor it does not work. JassHelper throws compile error: "Expected [size]".

JASS:
struct QuestType
    quest array questArray
endstruct

This issue only happens inside structs, outside of structs JASS compiles fine even if array size is not assigned.
Can you please change the error checking to allow assigning array size?
 
Hello, I'm having an issue with the error checking with array size constructor


The plug-in shows error in this code "error token '['", but it compiles without problem inside the map editor
JASS:
struct QuestType
    quest array questArray[1]
endstruct


This code without size does not show error inside VS code BUT in map editor it does not work. JassHelper throws compile error: "Expected [size]".

JASS:
struct QuestType
    quest array questArray
endstruct

This issue only happens inside structs, outside of structs JASS compiles fine even if array size is not assigned.
Can you please change the error checking to allow assigning array size?
Upgrade the plugin to the pre-publish version 1.8.31
 
Nice, it works in the pre-publish version.

There are two new minor issues in the newer version:

1, static arrays don't need to have the [size], but now the plugin requires even static arrays to have them
JASS:
struct Items
     static integer array itemIds  // this does not need [1] (but can have)
     integer array itemIds[1]  // this must have [1]
endstruct

2, comments in line at end block show as errors now for some reason
Examples (these all show error token '// hello'):
JASS:
endloop // hello
endif // hello
endmethod // hello

Anyway these are just minor issues, Thanks for the update :)
 
Back
Top