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)

Level 12
Joined
May 20, 2009
Messages
822
? 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
 
Level 1
Joined
Apr 6, 2015
Messages
2
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?
 
Level 3
Joined
Jun 25, 2021
Messages
3
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
 
Level 1
Joined
Apr 6, 2015
Messages
2
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 :)
 
Top