Visual Studio Code: ZScript Language Support 1.9.1

Any utility that assists in the creation of mods, assets, etc, go here. For example: Ultimate Doom Builder, Slade, WadSmoosh, Oblige, etc.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
KaptainMicila
Posts: 7
Joined: Mon Aug 19, 2019 6:46 am
Location: Pizzaland

Visual Studio Code: ZScript Language Support 1.9.1

Post by KaptainMicila »

This is a language support extension for Visual Studio Code

As promised in my last post:
Why Kate Editor?
Well, I decided that because of my personal needs, as that's the editor I use. But my real plan is to use this one as a base for the more complex highlighting system for VSCode, as that's an editor people actually use.
And as Kate supports LSP, the final stage of my plan is to make a ZScript language server. But that's gonna be something for later.
But, wasn't there an extension arleady for it?
Yes. there is. But I decided to remake it. It's not a fork of it, either. Most stuff in it was somewhat hardcoded, and I tried to hardcode the least possible I could.

HOW TO INSTALL
FOR VERSIONS 0.9.X
  • Get the .vsix from the "Releases" page on github
  • Open VSCode
  • Open the command palette ("Ctrl + Shift + p")
  • Type "Extension: install from VSIX"
FOR VERSIONS >= 1.0.0
Just do the same thing for earlier versions OR: Get it from Visual Studio's Marketplace or Open VSX Registry

FEATURES
  • Syntax highlighting for many languages needed for GZDoom modding
GITHUB LINK
For more specific installation instructions, reporing issues and downloading the source files
https://github.com/KaptainMicila/ZScript-VSCode
Last edited by KaptainMicila on Tue Mar 08, 2022 11:29 am, edited 21 times in total.
User avatar
Nash
 
 
Posts: 17481
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: Visual Studio Code: ZScript Language Support 0.9.6

Post by Nash »

Putting my endorsement. This highlighter works perfectly! I'm using it in all my ZScript projects now.
User avatar
AFADoomer
Posts: 1339
Joined: Tue Jul 15, 2003 4:18 pm

Re: Visual Studio Code: ZScript Language Support 0.9.6

Post by AFADoomer »

Very nice! Definitely going to give this a try long-term.

If only it were easier to get Intellisense fully working to dynamically detect declared object functions and variables. On initial glance, it seems a very convoluted process to implement for custom languages :-(.
User avatar
Nash
 
 
Posts: 17481
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: Visual Studio Code: ZScript Language Support 0.9.6

Post by Nash »

Intellisense (including fully supporting it across #included files) would ultimately be the most awesome thing ever. As I'm sure Kaptain knows because I keep bugging him about it. :mrgreen:

I understand, however, that it's one of the most difficult things to develop. At any rate, even just colour highlighting as it is, is already a huge productivity enhancer.
User avatar
KaptainMicila
Posts: 7
Joined: Mon Aug 19, 2019 6:46 am
Location: Pizzaland

Re: Visual Studio Code: ZScript Language Support 0.9.6

Post by KaptainMicila »

Thanks for everybody using my extension. The project is absolutely not dead, and I'm always avaible to fix any problems (VSCode tends to break stuff between updates, it already happened once).
About the intellisense part: between my job and hatred for VSCode's documentation and extension API, it's really hard to implement, but doable. I just need to bash my head on the keyboard enough times to make it click.
Thanks again for using my extension: it's gonna be released on the market (as no bugs have been found out in months) soon™.
Talon1024
 
 
Posts: 376
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support

Re: Visual Studio Code: ZScript Language Support 0.9.6

Post by Talon1024 »

When you release this extension on the VS Code marketplace, can you please release it on Open VSX as well? I use VSCodium, since I'm not a fan of telemetry.
User avatar
KaptainMicila
Posts: 7
Joined: Mon Aug 19, 2019 6:46 am
Location: Pizzaland

Re: Visual Studio Code: ZScript Language Support 0.9.6

Post by KaptainMicila »

Talon1024 wrote:When you release this extension on the VS Code marketplace, can you please release it on Open VSX as well? I use VSCodium, since I'm not a fan of telemetry.
Sure thing, Talon.
User avatar
Nash
 
 
Posts: 17481
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: Visual Studio Code: ZScript Language Support 1.0.0

Post by Nash »

Congratulations on the marketplace release. What's interesting is that VS Code immediately recognized the extension and prompted an editor update (despite me never having installed it from the marketplace, ever - I only ever manually installed in the past). Left a glowing review; keep up the great work!

Return to “Creation, Conversion, and Editing”