Releases: astrochili/vscode-defold
Releases · astrochili/vscode-defold
2.1.10
2.1.9
2.1.8
Added
- Added
Lua.runtime.pathStrict: true
with additional fixes for annotation paths so that autocompletion of libraries works. - Added comparing Defold and annotations versions to sync Defold API automatically. Turned on by default.
- Added watching on the
.internal/libs
folder changes to sync libraries annotations automatically #45. Turned on by default.
Fixed
- Fixed excessive nesting of annotation folders (
defold_api/defold_api
andlibs_api/extension_v1/extension/...
).
Removed
- Removed
d954mas/defold-api-emmylua
from the annotation sources because it's almost a year out of date.
2.1.7
Hot-Fixed
- Removed
Lua.runtime.pathStrict: true
from thesettings.json
template because of the bad side effect on external libraries autocompletion. Will review it later 😢.
2.1.6
Added
- Added
Lua.runtime.pathStrict: true
to thesettings.json
template.
Fixed
- Fixed #39 — cleaning outdated and doubled library annotations after deletion or updating the version.
- Fixed cleaning library annotations folder with the
Clean Annotations
command.
Removed
- Removed
Lua.telemetry.enable
from thesettings.json
template.
2.1.5
Added
- Added annotations and the
---@package
marker for script lifecycle snippets. The---@package
allows to hide lifecycle functions from the global context so that you don't get confused when choosing between a snippet and a real declared function with the same name. - Added the
script
snippet with theself
class definition and annotated lifecycle functions. Useful to create a script file with ready to useself
annotations. By default, the class is named by filename.
Note
- The definition of the
on_input.action
class exists in the updated defold-annotations release. So to makeon_input.action
available, please sync Defold API annotations via command pallete.
Example of output with the script
snippet in the player.script
file:
---@class player.script
---@package
---@param self player.script
function init(self)
end
---@package
---@param self player.script
---@param dt number
function update(self, dt)
end
---@package
---@param self player.script
---@param message_id hash
---@param message table
---@param sender hash
function on_message(self, message_id, message, sender)
end
---@package
---@param self player.script
---@param action_id hash
---@param action on_input.action
---@return boolean|nil
function on_input(self, action_id, action)
end
---@package
---@param self player.script
function final(self)
end
2.1.3
2.1.2
Fixed
- Fixed the libraries API syncing on Windows #37. Thanks to @ReanimatorXP 🙏.
2.1.1
Changed
- Optional extensions are now unselected during setup by default. Most people obviously don't need them.
Fixed
- Fixed confusing false start of an old build, in case of new build error. Now the old build is deleted in this case to avoid accidental launch.
2.1.0
Added
- Added the
Open Defold
command to open the current project in the Defold Editor.