Skip to content
Snippets Groups Projects
Select Git revision
  • f836d90eb629c22219cbcdff9bfcd7f45f1751f3
  • master default protected
  • srb2
3 results

changelog.md

Blame
  • user avatar
    最萌小汐 authored
    50dfc81e
    History
    changelog.md 69.16 KiB

    changelog

    3.7.3

    2023-11-14

    • FIX can not infer arg type in some cases.

    3.7.2

    2023-11-9

    3.7.1

    2023-11-7

    3.7.0

    2023-8-24

    • NEW support ---@type and --[[@as]] for return statement

    • NEW commandline parameter --force-accept-workspace: allowing the use of the root directory or home directory as the workspace

    • NEW diagnostic: inject-field

    • NEW ---@enum supports attribute key

      ---@enum (key) AnimalType
      local enum = {
        Cat = 1,
        Dog = 2,
      }
      
      ---@param animal userdata
      ---@param atp AnimalType
      ---@return boolean
      local function isAnimalType(animal, atp)
        return API.isAnimalType(animal, enum[atp])
      end
      
      assert(isAnimalType(animal, 'Cat'))
    • NEW ---@class supports attribute exact

      ---@class (exact) Point
      ---@field x number
      ---@field y number
      local m = {}
      m.x = 1 -- OK
      m.y = 2 -- OK
      m.z = 3 -- Warning
    • FIX wrong hover and signature for method with varargs and overloads

    • FIX #2155

    • FIX #2224

    • FIX #2252

    • FIX #2267

    3.6.25

    2023-7-26

    3.6.24

    2023-7-21

    • NEW diagnostic: missing-fields
    • FIX shake of codeLens
    • FIX #2145

    3.6.23

    2023-7-7

    • CHG signature: narrow by inputed literal

    3.6.22

    2023-6-14

    3.6.21

    2023-5-24

    • FIX disable ffi plugin

    3.6.20

    2023-5-23

    • NEW support connecting by socket with --socket=PORT
    • FIX #2113

    3.6.19

    2023-4-26

    3.6.18

    2023-3-23

    3.6.17

    2023-3-9

    3.6.13

    2023-3-2

    • FIX setting: Lua.addonManager.enable should be true by default
    • FIX failed to publish to Windows

    3.6.12

    2023-3-2

    3.6.11

    2023-2-13

    3.6.10

    2023-2-7

    3.6.9

    2023-2-2

    3.6.8

    2023-1-31

    • NEW command lua.exportDocument . VSCode will display this command in the right-click menu
    • CHG setting Lua.workspace.supportScheme has been removed. All schemes are supported if the language id is lua
    • FIX #1831
    • FIX #1838
    • FIX #1841
    • FIX #1851
    • FIX #1855
    • FIX #1857

    3.6.7

    2023-1-20

    3.6.6

    2023-1-17

    3.6.5

    2023-1-16

    • NEW support casting global variables
    • NEW code lens: this feature is disabled by default.
    • NEW settings:
      • Lua.codeLens.enable: Enable code lens.
    • CHG improve memory usage for large libraries
    • CHG definition: supports finding definitions for @class and @alias, since they may be defined multi times
    • CHG rename: supports @field
    • CHG improve patch for .luarc.json
    • CHG ---@meta [name]: once declared name, user can only require this file by declared name. meta file can not be required with name _
    • CHG remove telemetry
    • FIX #831
    • FIX #1729
    • FIX #1737
    • FIX #1751
    • FIX #1767
    • FIX #1796
    • FIX #1805
    • FIX #1808
    • FIX #1811
    • FIX #1824

    3.6.4

    2022-11-29

    • NEW modify require after renaming files
    • FIX circulation reference in process analysis
      ---@type number
      local x
      
      ---@type number
      local y
      
      x = y
      
      y = x --> Can not infer `y` before
    • FIX #1698
    • FIX #1704
    • FIX #1717