Banner
The Base Rom Level Design Contest has begun! Visit its contest subforum to learn more!
Views: 771,410,057
Time:
17 users online: August77, Aurora, BlueZy, DKR_02, ECS.98, ExONightZ, izaguirrefermin28, luanshn, MORC,  Nameless, Pereira, qa-,  Sinc-X, sinseiga, TheZ, Yung Gotenks, Yuzu - Guests: 42 - Bots: 83Users: 40,525 (1,860 active)
Latest: XCB
Tip: Always check for updated files in the database by sorting them by "Date" in the various sections.Not logged in.
A Better VS Code Extension for ASM
Forum Index - Sunken Ghost Ship - C3 Museum - Summer 2019 - A Better VS Code Extension for ASM
Tags:
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.
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
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 »
Forum Index - Sunken Ghost Ship - C3 Museum - Summer 2019 - A Better VS Code Extension for ASM

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: 9

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented