Go to file
Alex 50f435d611
Merge pull request #15 from GreenXenith/dependabot/npm_and_yarn/ansi-regex-3.0.1
Bump ansi-regex from 3.0.0 to 3.0.1
2022-04-12 16:08:50 -07:00
.eslintrc.json Initial commit 2020-01-10 08:11:13 -08:00
.gitignore Initial commit 2020-01-10 08:11:13 -08:00
.vscodeignore Initial commit 2020-01-10 08:11:13 -08:00
CHANGELOG.md Bump version 2021-07-13 12:46:23 -07:00
LICENSE.txt Version bump 1.4.0 2021-04-30 13:17:05 -07:00
README.md Bump version 2021-07-13 12:46:23 -07:00
extension.js Convert to spaces 2021-04-30 13:26:01 -07:00
formspec.json Convert to spaces 2021-04-30 13:26:01 -07:00
icon.png Add LICENSE and icon 2020-01-10 08:26:00 -08:00
jsconfig.json Initial commit 2020-01-10 08:11:13 -08:00
lua_api.txt Update snippet generator script and handlers, bump snippet version to 5.4.1 2021-04-30 11:06:18 -07:00
package-lock.json Bump ansi-regex from 3.0.0 to 3.0.1 2022-04-12 23:08:26 +00:00
package.json Bump version 2021-07-13 12:46:23 -07:00
smartsnippets.json Fix functions and certain characters as arguments 2021-06-12 14:25:12 -07:00
snippets.js Fix functions and certain characters as arguments 2021-06-12 14:25:12 -07:00
snippets.json Convert to spaces 2021-04-30 13:26:01 -07:00

README.md

Minetest Tools

Repository | Issues

Features

  • Minetest (5.4.1) Lua API code autocompletion
  • Mod and game folder structure boilerplates
  • .luacheckrc generator (globals only)
  • Formspec string syntax highlighting

Note: Code snippets were generated from lua_api.txt using snippets.js. Quality not guaranteed.

Extension Settings

  • minetest-tools.workspaceOnly: Code snippets will only be shown if certain files/folders (init.lua, mods, modpack.txt) are detected in the main workspace folder (default: true).

  • editor.quickSuggestions.strings: Some snippets (formspecs, texture modifiers) depend on string suggestions being enabled. This can be very annoying sometimes, so the snippets will only work if the string key in editor.quickSuggestions is set to true.
    It should look something like this:

    "editor.quickSuggestions": {
    	"other": true,
    	"comments": false,
    	"strings": true
    }
    

TODO

  • Make autocomplete snippets update automatically when needed
  • Generate .luacheckrc and snippet.js from API
  • Fix formspec element autocomplete (this will require a language server)

Release Notes

1.4.1: June 12, 2021

  • Fixed function arguments breaking on certain characters
  • Fixed autocompletion of constants

1.4.0: April 30, 2021

  • 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
  • Methods with functions as parameters are a little smarter 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

1.3.1: January 18, 2020

  • Fixed incorrect method snippets