1.27.0
[1.27.0] - 2023-12-25
Important Note
Heads up! In VSCode, this release changes the registered language ID from lua
to luau
. If you have any configuration based on the old language ID (e.g. themes / file icons / semantic highlighting overrides / language-specific settings overrides), you may need to update them.
Added
- Marking an item as
@deprecated
via documentation comments will now reflect its deprecated status in autocomplete (currently no diagnostics support)
- Show string literal byte length and utf8 characters on hover
- Added support for viewing textual bytecode and compiler remarks using commands
Luau: Compute Bytecode for file
andLuau: Compute Compiler Remarks for file
.
This opens up a new view with bytecode/remarks inlined as comments in the source file- Added configuration
luau-lsp.bytecode.vectorLib
,luau-lsp.bytecode.vectorCtor
andluau-lsp.bytecode.vectorType
to configure compiler options when generating bytecode - Custom editors should handle the
luau-lsp/bytecode
andluau-lsp/compilerRemarks
LSP message to integrate compiler remarks info in their editor
- Added configuration
Code_kAxxymJYpX.mp4
- Added
luau-lsp.types.robloxSecurityLevel
to select what security level to use for the API types, out of:None
,LocalUserSecurity
,PluginSecurity
andRobloxScriptSecurity
- Support passing
--settings
toluau-lsp lsp
configuring the default global settings to use
Changed
- Sync to upstream Luau 0.607
- Made rename operation fully backed by find all references, to ensure both return results that are consistent with each other
- Hide return type hints for no-op functions
- Changed the VSCode registered language and grammar ID from
lua
toluau
. NOTE: this may affect existing custom themes! - Renamed
script/globalTypes.d.lua
toscript/globalTypes.d.luau
(the old file will be kept temporarily for compatibility)- Please update your references to the file in custom scripts
- Default security level of API types changed from
RobloxScriptSecurity
toPluginSecurity
- setluau-lsp.types.robloxSecurityLevel
toRobloxScriptSecurity
to see original behaviour - Improved warning message when Rojo not found when attempting to generate sourcemap, with option to configure settings to disable autogeneration
Fixed
- Fixed Find All References / Rename not working on a table property defined inline, such as
name
in:
local T = {
name = "string"
}
- Fixed methods and events showing up in "GetPropertyChangedSignal" autocomplete
- Fixed requiring a directory containing "init.lua" not working
- Fixed go to definition on a property of a table that stores a cross-module type value (e.g. the result of a function defined in another module)
Full Changelog: 1.26.0...1.27.0