Views: 793,908,443
15 users online: 7 up, BlueYoshi - 57EML, CapitanFrio09,  Doctor No,  Giftshaven, h.carrell, joshua_is_the_new_rick, Katerpie,  Ninja Boy, PaperLuigi128, Ralshi02,  Tamaki, Yagami, Yoshi Master, Yume Nikki Fan - Guests: 47 - Bots: 155 Users: 41,433 (1,490 active)
Latest: yupyup
Tip: Use the Iggy/Larry Battle Tools to edit Iggy/Larry's platform.Not logged in.
Posts by Vice
Vice's Profile - Posts by Vice
Pages: « 1 »
Hey all,

I found the existing VS Code extension for ASM a bit lacking, so I spent an hour cannibalizing an old language server of mine to put this together, still does all the syntax highlighting but I added autocomplete and hover support.

Currently it just shows the full name of the opcode from the Acronyms page on the wiki, but if anyone more experienced with ASM than me (I just started last week, lol) wants to help write more detailed descriptions of what everything does, I can easily chuck it in the JSON syntax file.

My other language server (for Overwatch Workshop syntax) has more advanced features, like type checking and signature help, but I'm not really familiar enough with ASM to know if it needs any of that. If anyone has any ideas, let me know, as I'm fairly familiar with the language server protocol.

Link to the extension on the marketplace.
Link to the source on Github.
Originally posted by randomdude999
if you're going to put effort into a vs code extension for asm then could you at least add goto definition for labels/defines (and make the syntax highlighter highlight asar keywords too - i think i once managed to trick vscode into using asar's sublime text 3 highlighter, but i lost it)

this doc should help you out if you need to find stuff like define/label syntax and valid commands
this page provides much more detailed info about each instruction if you want that sort of thing

Thanks, I'll look into it.

I was also thinking some programmatic features could be useful, for example I could pretty easily make hovering on a RAM address show a tooltip from the RAM Map here (all the LSP handlers are async, so that would work).
Pages: « 1 »
Vice's Profile - Posts by Vice

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2019 - SMW Central
Legal Information - Privacy Policy - Link To Us

Total queries: 7


Follow Us On

  • YouTube
  • Twitch
  • Twitter


  • SMBX Community
  • MFGG