2021-10-15
CHG
improve.luarc.json
FIX
#722
2021-10-13
2021-10-8
2021-10-2
2021-10-1
NEW
loading settings from.luarc.json
NEW
settings:Lua.diagnostics.libraryFiles
Lua.diagnostics.ignoredFiles
Lua.completion.showWord
Lua.completion.requireSeparator
NEW
diagnostics:different-requires
NEW
---@CustomClass<string, number>
NEW
supports$/cancelRequest
NEW
EventEmitter
--- @class Emit --- @field on fun(eventName: string, cb: function) --- @field on fun(eventName: '"died"', cb: fun(i: integer)) --- @field on fun(eventName: '"won"', cb: fun(s: string)) local emit = {} emit:on(--[[support autocomplete fr "died" and "won"]]) emit:on("died", function (i) -- should be i: integer end) emit:on('won', function (s) -- should be s: string end)
NEW
---@module 'moduleName'
---@module 'mylib' local lib -- the same as `local lib = require 'mylib'`
NEW
add supports ofskynet
CHG
hover: improve showing multi definesCHG
hover: improve showing multi comments at enumsCHG
hover: shows methodCHG
hint:Lua.hint.paramName
now supportsDisable
,Literal
andAll
CHG
only search first file byrequire
CHG
no longer infer by usageCHG
no longer ignore file names case in WindowsCHG
watching library changesCHG
completion: improve misspelling resultsCHG
completion:Lua.completion.displayContext
default to0
CHG
completion:autoRequire
has better inserting positionCHG
diagnostics:redundant-parameter
default severity toWarning
redundant-value
default severity toWarning
CHG
infer: more strict of calculation resultsCHG
#663FIX
runtime errorsFIX
hint: may show param-2 asself
FIX
semantic: may fail when scrollingFIX
#647FIX
#660FIX
#673
2021-8-17
CHG
improve performanceFIX
#244
2021-8-9
FIX
completion: can not find global fieldsFIX
globals and class may lost
2021-8-9
CHG
improve memory usageCHG
completion: call snip triggers signature (VSCode only)FIX
completion: may not find results
2021-8-6
CHG
improve performanceFIX
#625
2021-7-26
2021-7-21
NEW
LuaDoc
: supports['string']
as field:---@class keyboard ---@field ['!'] number ---@field ['?'] number ---@field ['#'] number
NEW
add supports oflove2d
FIX
gitignore pattern\
broken initializationFIX
runtime errors
2021-7-19
NEW
settingLua.workspace.userThirdParty
, add private user third-parth by this settingCHG
path in config supports~/xxxx
FIX
autoRequire
inserted incorrect codeFIX
autoRequire
may provide dumplicated optionsFIX
#606FIX
#607
2021-7-16
NEW
VSCode
: click the status bar icon to operate:- run workspace diagnostics
NEW
LuaDoc
: supports[1]
as field:---@class position ---@field [1] number ---@field [2] number ---@field [3] number
NEW
hover: view arraylocal array = {'a', 'b', 'c'}
:local array: { [1]: string = "a", [2]: string = "b", [3]: string = "c", }
NEW
completion: supports enums infun()
---@type fun(x: "'aaa'"|"'bbb'") local f f(--[[show `'aaa'` and `'bbb'` here]])
FIX
loading workspace may hangFIX
debug.getuservalue
anddebug.setuservalue
should not exist inLua 5.1
FIX
infer of---@type class[][]
FIX
infer of---@type {}[]
FIX
completion: displaying@fenv
inLua 5.1
FIX
completion: incorrect at end of lineFIX
when a file is renamed, the file will still be loaded even if the new file name has been set to ignoreFIX
#596FIX
#597FIX
#598FIX
#601
2021-7-9
CHG
improveauto require
CHG
will not sleep anymoreFIX
incorrect doc:debug.getlocal
FIX
completion: incorrect callbackFIX
#592
2021-7-9
FIX
incorrect syntax colorFIX
incorrect type infer
2021-7-8
FIX
change setting may failed
2021-7-8
NEW
detect and apply third-party libraries, including:- OpenResty
- Cocos4.0
- Jass
NEW
LuaDoc
: supports literal table:---@generic T ---@param x T ---@return { x: number, y: T, z?: boolean} local function f(x) end local t = f('str') -- hovering "t" shows: local t: { x: number, y: string, z?: boolean, }
CHG
improve changing config from server sideCHG
improve hover colorCHG
improve performanceCHG
telemetry: sends version of this extensionFIX
supports for file with LFFIX
may infer a custom class as a string
2021-7-2
NEW
supports local config file, using--configpath="config.json"
, learn more hereNEW
gototype definition
NEW
infer type by callback param:---@param callback fun(value: string) local function work(callback) end work(function (value) -- value is string here end)
NEW
optional field---@field name? type
CHG
#549CHG
diagnostics: always ignore the ignored files even if they are openedFIX
completion:type() ==
may does not work
2021-7-1
NEW
hover
andcompletion
reports initialization progressCHG
class field
consider implicit definition---@class Class local mt = {} function mt:init() self.xxx = 1 end function mt:func() print(self.xxx) -- self.xxx is defined end
CHG
improve performanceFIX
#580
2021-6-25
2021-6-24
CHG
improve memory usageFIX
some dialog boxes block the initialization processFIX
diagnosticsundefined-field
: blocks main threadFIX
#565
2021-6-23
NEW
supports literal table inpairs
local t = { a = 1, b = 2, c = 3 } for k, v in pairs(t) do -- `k` is string and `v` is integer here end
CHG
viewlocal f ---@type fun(x:number):boolean
---before function f(x: number) -> boolean ---after local f: fun(x: number): boolean
FIX
#558FIX
#567FIX
#568FIX
#570FIX
#571
2021-6-21
FIX
#566
2021-6-21
NEW
implementCHG
diagnosticsundefined-field
,deprecated
: default byOpened
instead ofNone
CHG
settingLua.runtime.plugin
: default by""
instead of".vscode/lua/plugin.lua"
(for security)CHG
settingLua.intelliSense.searchDepth
: removedCHG
settingLua.misc.parameters
:string array
instead ofstring
CHG
settingLua.develop.enable
,Lua.develop.debuggerPort
,Lua.develop.debuggerWait
: removed, useLua.misc.parameters
insteadFIX
#441FIX
#493FIX
#531FIX
#542FIX
#543FIX
#553FIX
#562FIX
#563
2021-6-17
NEW
supportsuntrusted workspaces
FIX
performance issues, thanks to folke
2021-5-18
2021-5-8
FIX
#529
2021-5-7
NEW
setting:completion.showParams
NEW
LuaDoc
: supports multiline commentsNEW
LuaDoc
: tail comments support lua string
2021-4-30
NEW
setting:completion.autoRequire
NEW
setting:hover.enumsLimit
CHG
folding: supports-- #region
FIX
completion: details may be suspendedFIX
#522FIX
#523
2021-4-13
2021-4-6
2021-4-2
CHG
LuaDoc
: supports---@param self TYPE
CHG
completion: does not show suggests after\n
,{
and,
, unless your settingeditor.acceptSuggestionOnEnter
isoff
FIX
#482
2021-3-27
FIX
telemetry window blocks initializingFIX
#468
2021-3-27
CHG
telemetry: change to opt-in, see #462 and Privacy-PolicyFIX
#467
2021-3-22
2021-3-18
NEW
VSCode: new settingLua.misc.parameters
NEW
new settingLua.runtime.builtin
, used to disable some built-in librariesNEW
quick fix: disable diagnostic in line/fileNEW
setting:Lua.runtime.path
supports absolute pathNEW
completion: field in table
---@class A
---@field x number
---@field y number
---@field z number
---@type A
local t = {
-- provide `x`, `y` and `z` here
}
NEW
LuaDoc
: supports multi-line comment before resume
---this is
---a multi line
---comment
---@alias XXXX
---comment 1
---comment 1
---| '1'
---comment 2
---comment 2
---| '2'
---@param x XXXX
local function f(x)
end
f( -- view comments of `1` and `2` in completion
CHG
intelli-scense: search from generic param to returnCHG
intelli-scense: search across varargCHG
text-document-synchronization: refactoredCHG
diagnostic: improvenewline-call
CHG
completion: improvethen .. end
CHG
improve initialization speedCHG
improve performanceFIX
missed syntax errorfunction m['x']() end
FIX
#452
2021-3-10
CHG
semantic-tokens: improve colors ofconst
andclose
CHG
type-formating: improve execution conditionsFIX
#444
2021-3-9
NEW
LuaDoc
: supports---@diagnostic disable
NEW
code-action: convert JSON to LuaNEW
completion: providethen .. end
snippetNEW
type-formating:-- press `enter` at $ local function f() $ end -- formating result: local function f() $ end -- as well as do $ end -- formating result do $ end
CHG
Windows
: dose not provideucrt
any moreCHG
Lua.workspace.library
: usepath[]
instead of<path, true>
FIX
missed syntax errorlocal a <const>= 1
FIX
workspace: preload blocked when hittingLua.workspace.maxPreload
FIX
#443FIX
#445
2021-3-4
2021-3-3
CHG
intelli-scense: treatV[]
astable<integer, V>
inpairs
FIX
completion:detail
disappears during continuous inputFIX
#435FIX
#436FIX
#437
2021-3-2
FIX
running in Windows
2021-3-1
CHG
intelli-scense: improve infer acrosstable<K, V>
andV[]
.CHG
intelli-scense: improve infer acrosspairs
andipairs
FIX
hover: shows nothing when hovering unknown functionFIX
#398FIX
#421FIX
#422
2021-2-24
NEW
diagnostic:duplicate-set-field
NEW
diagnostic:no-implicit-any
, disabled by defaultCHG
completion: improve field and tableCHG
improve infer crossipairs
CHG
cache globals when loadingCHG
completion: remove trigger character\n
for now, see #401FIX
diagnositc: may open file with wrong uri caseFIX
#406
2021-2-22
FIX
signature: parameters may be misplacedFIX
completion: interface in nested tableFIX
completion: interface not show after,
FIX
#400FIX
#402FIX
#403FIX
#404FIX
runtime errors
2021-2-20
NEW
file encoding supportsansi
NEW
completion: supports interface, see #384NEW
LuaDoc
: supports multiple class inheritance:---@class Food: Burger, Pizza, Pie, Pasta
CHG
renametable*
totablelib
CHG
LuaDoc
: revert compatible with--@
, see #392CHG
improve performanceFIX
missed syntax errorf() = 1
FIX
missed globalbit
inLuaJIT
FIX
completion: may insert error text when continuous inputingFIX
completion: may insert error text after resolveFIX
#349FIX
#396
2021-2-18
CHG
diagnostic:unused-local
excludesdoc.param
CHG
definition: excludes values, see #391FIX
not works on Linux and macOS
2021-2-9
NEW
LUNAR YEAR, BE HAPPY!CHG
diagnostic: when there are too many errors, the main errors will be displayed firstCHG
main thread no longer loop sleeps, see #329 #386CHG
improve performance
2021-2-8
2021-2-4
2021-2-2
FIX
#372
2021-2-2
NEW
VSCode
hintNEW
flush cache after 5 minNEW
VSCode
help semantic color with market themeCHG
create/delete/rename files no longer reload workspaceCHG
LuaDoc
: compatible with--@
FIX
VSCode
settingsFIX
#368FIX
#371
2021-1-28
NEW
VSCode
status barNEW
VSCode
options in some windowCHG
performance optimizationFIX
endless loop
2021-1-27
CHG
performance optimizationFIX
modifying the code before loading finish makes confusionFIX
signature: not works
2021-1-27
FIX
endless loop
2021-1-26
2021-1-7
2021-1-5
CHG
performance optimization
2021-1-5
NEW
Lua.runtime.plugin
NEW
intelli-scense: improvedm.f = function (self) end
fromself
tom
CHG
performance optimizationCHG
completion: improve performance of workspace wordsFIX
hover: tail comments may be cuttedFIX
runtime errors
2021-1-4
NEW
workspace: supports.dll
(.so
) inrequire
NEW
folding:---@class
,--#region
and docs of functionNEW
diagnostic:count-down-loop
CHG
supports~
in command lineCHG
completion: improve workspace wordsCHG
completion: show words in stringCHG
completion: splitfor .. in
tofor .. ipairs
andfor ..pairs
CHG
diagnostic:unused-function
checks recursiveFIX
#339
2020-12-31
NEW
YEAR! Peace and love!NEW
specify path oflog
andmeta
by--logpath=xxx
and--metapath=XXX
in command lineNEW
completion: worksapce wordNEW
completion: show words in commentNEW
completion: generate function documentationCHG
got arg after script name:lua-language-server.exe main.lua --logpath=D:\log --metapath=D:\meta --develop=false
FIX
runtime errors
2020-12-29
CHG
performance optimization
2020-12-24
FIX
telemetry: connect failed caused not working
2020-12-23
NEW
runtime: support nonstandard symbolNEW
diagnostic:close-non-object
FIX
#318
2020-12-20
FIX
workspace: preload may failed
2020-12-20
FIX
luadoc: typo ofpackage.config
FIX
#310
2020-12-17
CHG
completion: use custom tabsizeFIX
#307FIX
a lot of runtime errors
2020-12-16
NEW
setting:diagnostics.neededFileStatus
FIX
scan workspace may failsFIX
quickfix:newline-call
failedFIX
a lot of other runtime errors
2020-12-16
NEW
diagnostic:undefined-field
NEW
telemetry:CHG
diagnostic:unused-function
ignores function with<close>
CHG
semantic: not cover local callCHG
language client: update to 7.0.0FIX
semantic: tokens may not be updated correctlyFIX
completion: require path brokenFIX
hover: document uriFIX
#291FIX
#294
2020-12-14
NEW
completion: auto require local modulesNEW
completion: support delegateNEW
hover: show function by keywordfunction
NEW
code action: swap paramsCHG
standalone: unbind the relative path between binaries and scriptsCHG
hover:LuaDoc
also catchs--
(no need---
)CHG
rename: support docCHG
completion: keyword considers expressionFIX
#297
2020-12-5
NEW
settingruntime.unicodeName
NEW
fully supports---@generic T
FIX
#274FIX
#276FIX
#279FIX
#280
2020-12-3
NEW
settinghover.previewFields
: limit how many fields are shown in table hoverNEW
fully supports---@type Object[]
NEW
supports---@see
NEW
diagnosticunbalanced-assignments
CHG
resolves infer ofstring|table
CHG
unused-local
ignores local with---@class
CHG
locale file format changes tolua
2020-12-1
NEW
provides change logs, I think it's good idea for people knowing what's new(bugs)NEW
meta files of LuaJITNEW
support completion oftype(o) == ?
CHG
now I think it's a bad idea as it took me nearly an hour to complete the logs started from version1.0.0
FIX
closing ignored or library file dose not clean diagnosticsFIX
searching oft.f1
whent.f1 = t.f2
FIX
missing signature help of global function
2020-11-27
FIX
syntaxes tokens: #272
2020-11-27
NEW
hover shows comments from---@param
and---@return
: #135NEW
supportLuaDoc
as tail commentFIX
---@class
inheritanceFIX
missed syntaxes token:punctuation.definition.parameters.finish.lua
2020-11-25
FIX
wiered completion suggests for require paths inLinux
andmacOS
: #269
2020-11-25
FIX
extension not works inUbuntu
: #268
2020-11-24
NEW
auto completion finds globals fromLua.diagnostics.globals
NEW
support tailLuaDoc
CHG
no moreLua.intelliScense.fastGlobal
, now globals always fast and accurateCHG
LuaDoc
supports--- @
CHG
find reference
uses extraLua.intelliSense.searchDepth
CHG
diagnostics are limited by100
in each fileFIX
library files are under limit ofLua.workspace.maxPreload
: #266
2020-11-23
NEW
auto completion special marks deprecated itemsFIX
diagnostics may push wrong uri inLinux
andmacOS
FIX
diagnostics not cleaned up when closing ignored lua fileFIX
reload workspace remains old cachesFIX
incorrect hover of local attribute
2020-11-20
NEW
no longerBETA
NEW
usemeta.lua
instead ofmeta.lni
, now you can find the definition of builtin functionCHG
Lua files outside of workspace no longer launch a new server
2020-11-20
NEW
diagnosticcode-after-break
CHG
optimize performanceCHG
updated language clientCHG
unused-function
ignores global functions (may used out of Lua)CHG
checks if client supportsLua.completion.enable
: #259FIX
support for single Lua fileFIX
#257
2020-11-14
NEW
LuaDoc
supports moreEmmyLua
2020-11-12
FIX
extension not works
2020-11-12
NEW
server kills itself when disconnectingNEW
LuaDoc
supports moreEmmyLua
FIX
Lua.diagnostics.enable
not works: #251
2020-11-11
NEW
supports---|
afterdoc.type
CHG
lowcase-global
ignores globals with---@class
FIX
endless loopFIX
#244
2020-11-10
FIX
autocompletion not works.
2020-11-9
NEW
implementation, NEW start!