Minetest Tools Visual Studio Code Extension [1.4.0]

Post Reply
User avatar
GreenXenith
Member
Posts: 1339
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenXenith
In-game: GreenXenith
Location: The singularity
Contact:

Minetest Tools Visual Studio Code Extension [1.4.0]

by GreenXenith » Post

Minetest Tools | Extension for Visual Studio Code

Marketplace | GitHub

Features:
  • Minetest (5.4.1) 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).

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 GreenXenith on Fri Apr 30, 2021 20:41, edited 3 times in total.
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenXenith#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
GreenXenith
Member
Posts: 1339
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenXenith
In-game: GreenXenith
Location: The singularity
Contact:

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by GreenXenith » Post

Added formspec string syntax highlighting (see OP).
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenXenith#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: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by texmex » Post

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

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

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by rubenwardy » Post

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: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by texmex » Post

But it’s so ugly. T_T

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

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by rubenwardy » Post

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: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by texmex » Post

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.

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

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by rubenwardy » Post

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

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by warpnarget » Post

cool, thanks

this will be useful

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

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by texmex » Post

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.

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

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by rubenwardy » Post

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
GreenXenith
Member
Posts: 1339
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenXenith
In-game: GreenXenith
Location: The singularity
Contact:

Re: Minetest Tools Visual Studio Code Extension [1.3.0]

by GreenXenith » Post

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 | GreenXenith#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
GreenXenith
Member
Posts: 1339
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenXenith
In-game: GreenXenith
Location: The singularity
Contact:

Re: Minetest Tools Visual Studio Code Extension [1.3.0]

by GreenXenith » Post

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 | GreenXenith#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: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: Minetest Tools Visual Studio Code Extension [1.3.0]

by texmex » Post

I’m on an Atomized VSCodium using this extension and it’s actually awesome. Thanks alot!

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

Re: Minetest Tools Visual Studio Code Extension [1.3.1]

by Lone_Wolf » Post

Didn't see this. Great extension!
My ContentDB -|- Working on Voxel Knights -|- Minetest Forums Dark Theme!! (You need it)

User avatar
ANAND
Member
Posts: 333
Joined: Sun Jan 28, 2018 12:54
GitHub: ClobberXD
IRC: ANAND ClobberXD
In-game: ANAND ClobberXD
Location: India
Contact:

Re: Minetest Tools Visual Studio Code Extension [1.3.1]

by ANAND » Post

This is beautiful. Well done! :)
My Mods

cdb_NXKPOcRlgUGdMyf8uLoUQvnMGIfuaHmp

User avatar
Miniontoby
Member
Posts: 481
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

Re: Minetest Tools Visual Studio Code Extension [1.3.1]

by Miniontoby » Post

wow, this is cool.
But I dont have visual studio.

Can you maybe make something for notepad++
Working on adv_csm ---- Check my mod "Doorbell"

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

Re: Minetest Tools Visual Studio Code Extension [1.3.1]

by rubenwardy » Post

This is VSCode, not Visual Studio. VSCode is much better than NodePad++ for editing code

This may not even be possible to make in NodePad++

User avatar
Miniontoby
Member
Posts: 481
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

Re: Minetest Tools Visual Studio Code Extension [1.3.1]

by Miniontoby » Post

ok, but Visual Studio doesn't fit on my laptop, because I dont have enough space for it and it is too slow
Working on adv_csm ---- Check my mod "Doorbell"

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

Re: Minetest Tools Visual Studio Code Extension [1.3.1]

by rubenwardy » Post

again, Visual Studio Code is not Visual Studio. You do not need to install Visual Studio to use VSCode

If VSCode doesn't run on your computer, there's not much we can do

Starbeamrainbowlabs
Member
Posts: 61
Joined: Sat May 26, 2018 11:25
GitHub: sbrl
Location: Nowhere, Everywhere, and Somewhere inbetween
Contact:

Re: Minetest Tools Visual Studio Code Extension [1.3.1]

by Starbeamrainbowlabs » Post

Did anyone actually port this to Atom? I've been using Atom as my primary code editor for multiple years, and I'm not ready to move from it yet.

nonom
New member
Posts: 5
Joined: Fri Jun 19, 2020 15:36
GitHub: nonom
IRC: nonom
In-game: nonom

Re: Minetest Tools Visual Studio Code Extension [1.3.1]

by nonom » Post

Installed! used to be working with VSCode for docker and another different technologies in a nutshell, thanks for this extension.

User avatar
GreenXenith
Member
Posts: 1339
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenXenith
In-game: GreenXenith
Location: The singularity
Contact:

Updated Minetest Tools Visual Studio Code Extension [1.4.0]

by GreenXenith » Post

Version bump to 1.4.0.

Changes:
  • API autocompletion bumped to Minetest version 5.4.1
  • Rewrote snippet generator
    • No longer requires manual input
    • Captures all API methods, tables, and constants
    • Adjusted quick info formatting
    • Includes API links
  • CompletionItemProvider can handle some backspacing now
  • Texture modifiers will remove trailing bracket if autocompleted
  • Global constructors and namespaces now have snippets
  • Added missing globals to .luacheckrc
  • Fixed and tweaked formspec highlighting
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenXenith#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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests