Releases: astrochili/vscode-defold
Releases · astrochili/vscode-defold
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.
2.0.8
Changed
- Changed the build path to avoid conflicts with the Defold Editor build.
2.0.7
Fixed
- Fixed the soft migration of the workspace launch configuration.
2.0.6
Changed
- Renamed the category of tasks and commands from
Defold
toDefold Kit
to avoid conflicts. - Renamed all the settings keys from
defold.
todefoldKit.
to avoid conflicts. - Renamed launch configuration to
Defold Kit
to avoid conflicts.
Added
- Soft migration of user settings from
defold.
todefoldKit.
keys. - Soft migration of the workspace launch configuration from
Defold
toDefold Kit
name.
2.0.5
Removed
- Removed everything related the
Launch (without debugger)
andBuild to Launch
commands to avoid confusing. - Now the only way to launch the game is using the
Run ang Debug
panel.
2.0.4
Fixed
- Fixed the launch command for a project with spaces in the path.