- Updated diagnostic severities to make more sense.
- Fixed fix all and lint folder not working properly at times.
- Fixed argument issues not highlighting the right location.
- Improved indexing speed and skip indexing in non-workspace environments.
- Fixed logical expression with variables in arguments always resulting in a
boolean
.
- Fixed extension breaking in non-workspace environments.
- Fixed issues where native would not accept types even though it expects
any
. - Properly evaluate literal expressions.
- Fixed various issues caused by the rewrite.
- Rewrote most of the codebase.
- Major performance improvements.
- Caching of indexes.
- Only fetching natives once a day.
- Fixed various issues with decorators and diagnostics.
- Removed some unnecessary settings.
- Improved the hints and event-definition providers (MUCH faster).
- Debounced the hints provider to improve performance.
- Performance improvements when indexing and linting the workspace.
- Added even more hints for various natives.
- Fixed theme color being incorrect.
- Improved logo and nav icon.
- Added more hints to control natives.
- Added hints for
InvokeNative
if the offset is known. - Added more ped motion state hashes.
- Add joaat reverse command and context action
- Added inline hints for
DisableControlAction
andEnableControlAction
- Fixed diagnostic notification showing NaN at times
- Added a
excludeFilesRegex
config option
- Fix an error where diagnostics would not work a lot of the times
- Made syntax error diagnostics optional (can be changed in the settings)
- Dropped (expensive) definitions support (except for events) in favor of sumneko's lua language server
- Fixed event definitions not properly working sometimes
- Added inline hints for ped motion states, vehicle mods and vehicle wheel types
- Updated the list of ped config flags
- Added optional performance hints (can be toggled on in settings)
- Fixed a regex matching too much when providing lua-glm suggestions
- Using luaparse-glm when resolving function calls for better accuracy
- Added inline hints for
SetPedConfigFlags
,GetPedConfigFlags
andGetIsTaskActive
- Added a "Clear all Diagnostics" command
- Added a "Convert JSON to Lua" command & context action
- Removed some leftover debug code
- Added a new diagnostic to prevent "accidental" native overrides
- Some new snippets
- The event search is now toggled by a setting
- Fixed apiset (context) being "shared" by default instead of "client"
- Improved snippets
- When ctrl-clicking on a definition itself, a global search will be performed now
- Added snippet support (e.g. typing
thread
then pressing enter will insertCitizen.CreateThread(function()end)
)
- Improved resource generation (context action)
- Fix index not being rebuilt properly when a file is changed
- Upgraded luaparse-glm to fix a few issues with parsing
- Improved type checking for natives
- Events now also have "go-to-definition" support
- Improved indexing performance and speed by multiple orders of magnitude
- Fixed some natives having their returns and parameters flipped
- Refactored function call parsing to handle a lot more edge cases
- Improved color highlighter
- Completely rewrote the extension, cleaning up the code a lot
- Added a color highlighter
- Various improvements making the extension faster and more stable
- Further optimizations to build process
- Fixed a few issues with the hover provider
- Added JOAAT hash hover previews
- Optimized build process to reduce extension size
- Converted code to ES modules
- New library for glm code parsing
- Added esbuild config
- Removed
math.round
suggestion since it doesn't actually return an integer somath.floor(n + 0.5) ~= math.round(n)
- Cleaned up extension code some more
- Improved the extensions display name
- Fixed diagnostics breaking
- Cleaned up extension code
- Added vector swizzle hover information
- Added workspace indexing to improve performance
- Added definition provider using the workspace index
- Improved performance of diagnostics
- Improved and extended native hover information
- Fixed bug where the lua-glm parser would incorrectly replace
in ipairs
withtable.unpack
- More fixes to the lua-glm parser
- Added info diagnostic for
math.floor(x + 0.5)
tomath.round(x)
- Fixed a few issues with the lua-glm parser
- The
in
quick fix now properly unwraps parentheses
- Fixed the slightly borked README.md
- Improved quick fix support, adding a lot more quick fixes
- Lua parser now supports most of Lua-GLM
- Added setting to disable Lua-GLM support
- Slightly improved settings by enabling markdown
- Improved diagnostics performance by using timeouts
- Clear diagnostics when language id is changed
- Added some more knowledge about
Citizen.Wait
- Added a "Collect Statistics" context option
- Fixed a small issue where files named "observer" were incorrectly classed as server-side files
- Added a "Convert to fxmanifest.lua" context option for __resource.lua files
- Fixed even more parameters sometimes ending up as returns instead
- Fixed floats sometimes being accepted as other types
- Added some custom overrides for incorrect native parameter types
- Fixed more parameters sometimes ending up as returns instead
- Added ignore native command and context action
- Lines preceded by "-- IGNORE" are now not considered for some diagnostics
- Fixed negative numbers not being considered for diagnostics
- Linting a whole folder will now show how many issues were found
- Fixed context being set to client if the file ended with "_sv"
- Fixed parameters sometimes ending up as returns instead
- Small fixes to the type and parameter count check
- Check if native parameter count is correct
- Check if basic native parameter types are correct
- Fixed code completions not being inline on
not
- Fixed void returns adding
local retval
- "Organize List" context action
- Added a formatter
- Added lua syntax diagnostics
- Added a few helpful context actions like "New resource"
- Added some snippets
- Show warning message when unable to update natives
- Improve speed of statistics
- Fixed some issues with code completion in
if
/while
/etc. statements
- Fixed native search not working (oops)
- Cache natives for offline usage
- Added a built in search tab
- Fixeded inline native reference links not working
- Added a check for excessive newlines
- "Fix all Diagnostics" will now properly fix ALL diagnostics
- Fixeded "Lint Folder" not working on the root folder
- Only run diagnostics on lua files
- Massively improved completion and diagnostic speed
- Added "Fix all Diagnostics" command
- Added trailing whitespace detection
- Fixeded "Lint Folder" not working on directories including "[]"
- Added
vs-fivem.lintFolder
command to lint all files in a folder - Added explorer context menu option to lint a folder
- Improved performance of linting
- Fixeded bug where some natives aliases were the same as their current name
- Searching for natives including the search string not only ones that start with it
- Using a natives hash (e.g.
N_0xD716F30D8C8980E2
) instead of its name will now highlight it as a warning - Fixeded certain custom functions being highlighted as warnings
- Old native aliases are now highlighted as warnings
- Initial release