Minetest Tools Visual Studio Code Extension [1.3.1]

User avatar
GreenDimond
Member
 
Posts: 1295
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Minetest Tools Visual Studio Code Extension [1.3.1]

by GreenDimond » Fri Jan 10, 2020 17:32

Minetest Tools | Extension for Visual Studio Code


Marketplace | GitHub

Features:

  • Minetest (5.1.0) Lua API Intellisense
    Image
  • Mod and game boilerplates
    Image
  • Formspec string syntax highlighting
    Image
  • .luacheckrc generator (globals only)

Commands are labeled Minetest Tools: <command> in the command palette. There are no keyboard shortcuts included, but mapping commands might be useful for you (ex: CTRL+ALT+M for mod boilerplate).

Code snippets were generated using a Lua script, so the quantity/quality of snippets may be sub-par. Contributions to improve the script are welcome.

Some of you might not want the formspec syntax highlighting, but I haven't found a way to make it toggleable yet.

View the README for more details.

Please suggest features. Issues are appreciated.
Last edited by GreenDimond on Sat Jan 18, 2020 23:08, edited 2 times in total.
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 

User avatar
GreenDimond
Member
 
Posts: 1295
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by GreenDimond » Sat Jan 11, 2020 05:08

Added formspec string syntax highlighting (see OP).
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 

User avatar
texmex
Member
 
Posts: 1691
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by texmex » Sat Jan 11, 2020 08:53

Very nice! Too bad I’m om Atom but maybe I can adapt it :)
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw
 

User avatar
rubenwardy
Moderator
 
Posts: 5965
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by rubenwardy » Sat Jan 11, 2020 13:02

texmex wrote:Very nice! Too bad I’m om Atom but maybe I can adapt it :)


I switched from atom to vscode a while back. It is significantly faster and feels lighter, plus the plugins work better
 

User avatar
texmex
Member
 
Posts: 1691
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by texmex » Sat Jan 11, 2020 19:12

But it’s so ugly. T_T
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw
 

User avatar
rubenwardy
Moderator
 
Posts: 5965
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by rubenwardy » Sat Jan 11, 2020 19:37

texmex wrote:But it’s so ugly. T_T


You can get themes for it. I personally don't find it any uglier than atom
 

User avatar
texmex
Member
 
Posts: 1691
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by texmex » Mon Jan 13, 2020 10:06

Themes are one thing, but there are still pesky Windows design conventions I’ll try to get rid of. I’ll give it a try. I found ”VSCodium”: same thing but stripped of MS data collection.
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw
 

User avatar
rubenwardy
Moderator
 
Posts: 5965
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by rubenwardy » Mon Jan 13, 2020 12:06

texmex wrote:I found ”VSCodium”: same thing but stripped of MS data collection.


I use "Code - OSS", which is the VSCode equivalent of Chromium - it's the upstream open source version without telemetry
 

warpnarget
Member
 
Posts: 15
Joined: Sat Oct 12, 2019 21:34
In-game: warpnarget
 

User avatar
texmex
Member
 
Posts: 1691
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by texmex » Mon Jan 13, 2020 21:05

rubenwardy wrote:
texmex wrote:I found ”VSCodium”: same thing but stripped of MS data collection.


I use "Code - OSS", which is the VSCode equivalent of Chromium - it's the upstream open source version without telemetry

It sounds identical. Why are there two? What’s the link? I’m confused.
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw
 

User avatar
rubenwardy
Moderator
 
Posts: 5965
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by rubenwardy » Mon Jan 13, 2020 22:07

texmex wrote:It sounds identical. Why are there two? What’s the link? I’m confused.


Code - OSS is https://github.com/microsoft/vscode

Microsoft use a custom build configuration to add their branding and telemetry, and a set of proprietary plugins.

In the same way, VSCodium is Code - OSS with a custom build configuration and a rebranding. The source is here: https://github.com/VSCodium/vscodium

TL;DR: the difference is in branding and who you trust with the build scripts. I only use Code - OSS because that's what's in the arch repos
 

User avatar
GreenDimond
Member
 
Posts: 1295
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: Minetest Tools Visual Studio Code Extension [1.3.0]

by GreenDimond » Tue Jan 14, 2020 00:28

Update: 1.1.0 -> 1.3.0
Intellisense/snippets have been reworked (twice). It should now be a little more sane to use and be a lot more accurate.

Formspec element snippets no longer work for now, still need to find a fix for this.
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 

User avatar
GreenDimond
Member
 
Posts: 1295
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: Minetest Tools Visual Studio Code Extension [1.3.0]

by GreenDimond » Sat Jan 18, 2020 22:20

Update: 1.3.1
I did an oops when generating the code snippets and managed to cut off the first word of a lot methods (ie. set_pos() would become _pos()).
This is now fixed.
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 

User avatar
texmex
Member
 
Posts: 1691
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: Minetest Tools Visual Studio Code Extension [1.3.0]

by texmex » Sat Jan 18, 2020 22:52

I’m on an Atomized VSCodium using this extension and it’s actually awesome. Thanks alot!
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw
 

User avatar
Lone_Wolf
Member
 
Posts: 2275
Joined: Sun Apr 09, 2017 05:50
Location: Not there, THERE!
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
 


Return to Minetest-related projects



Who is online

Users browsing this forum: Majestic-12 [Bot] and 3 guests