Minetest Tools Visual Studio Code Extension [1.4.1]

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
Contact:

Minetest Tools Visual Studio Code Extension [1.4.1]

by GreenXenith » Post

Minetest Tools | Extension for Visual Studio Code

OpenVSX | 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 Mon Aug 16, 2021 01:39, edited 4 times in total.
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
Contact:

Re: Minetest Tools Visual Studio Code Extension [1.1.0]

by GreenXenith » Post

Added formspec string syntax highlighting (see OP).
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
texmex
Member
Posts: 1753
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: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, 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
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
texmex
Member
Posts: 1753
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: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, 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
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
texmex
Member
Posts: 1753
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: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, 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
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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: 1753
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: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, 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
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
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.
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
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.
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
texmex
Member
Posts: 1753
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: 2576
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Minetest Tools Visual Studio Code Extension [1.3.1]

by Lone_Wolf » Post

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

User avatar
ANAND
Member
Posts: 335
Joined: Sun Jan 28, 2018 12:54
GitHub: magnetar47
IRC: MAGNETAR ANAND
In-game: ANAND and all names with Tomato
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: 616
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 mtctl ---- Check my mod "Doorbell" -- Stay safe

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, 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++
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Miniontoby
Member
Posts: 616
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 mtctl ---- Check my mod "Doorbell" -- Stay safe

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, 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
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Starbeamrainbowlabs
Member
Posts: 66
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: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
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
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
Contact:

Re: Minetest Tools Visual Studio Code Extension [1.4.1]

by GreenXenith » Post

Version bump to 1.4.1. (2 months ago)

Changes:
  • Fixed function arguments breaking on certain characters
  • Fixed autocompletion of constants
Now on Open VSX Registry! (1 month ago)
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
davidthecreator
Member
Posts: 452
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

Re: Minetest Tools Visual Studio Code Extension [1.4.1]

by davidthecreator » Post

Wat?

~~me, a standard issue notepad user

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests