Skip to content

Commit 7987684

Browse files
committed
update version
1 parent 26c1923 commit 7987684

File tree

7 files changed

+50
-2
lines changed

7 files changed

+50
-2
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22

33
[中文Log](CHANGELOG_CN.md)
44

5+
# 0.9.18
6+
7+
`NEW` Now language server configuration might be provided globally via the `<os-specific home dir>/.emmyrc.json`, `<os-specific config dir>/emmylua_ls/.emmyrc.json`, or by setting a variable `EMMYLUALS_CONFIG` with a path to the json configuration.
8+
Global configuration have less priority than the local one
9+
10+
`NEW` Classes might now infer from generic types and provide corresponding completions.
11+
12+
`CHG` Refactor flow analyze algorithm
13+
14+
`NEW` Array return values are now considered nullable. If you want to remove this behavior, you can set `strict.arrayIndex` to `false` in the configuration file.
15+
16+
`FIX` Fix some self infer issue
17+
18+
`FIX` Fix some diagnostic action issue
19+
20+
`FIX` Optimize some type check
21+
22+
`FIX` Optimize some completion
23+
524
# 0.9.17
625

726
`CHG` Refactor `type infer`

CHANGELOG_CN.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Change Log
22

3+
# 0.9.18
4+
5+
`NEW` Now language server configuration might be provided globally via the `<os-specific home dir>/.emmyrc.json`, `<os-specific config dir>/emmylua_ls/.emmyrc.json`, or by setting a variable `EMMYLUALS_CONFIG` with a path to the json configuration.
6+
Global configuration have less priority than the local one
7+
8+
`NEW` Classes might now infer from generic types and provide corresponding completions.
9+
10+
`CHG` Refactor flow analyze algorithm
11+
12+
`NEW` Array return values are now considered nullable. If you want to remove this behavior, you can set `strict.arrayIndex` to `false` in the configuration file.
13+
14+
`FIX` Fix some self infer issue
15+
16+
`FIX` Fix some diagnostic action issue
17+
18+
`FIX` Optimize some type check
19+
20+
`FIX` Optimize some completion
21+
322
# 0.9.17
423

524
`CHG` 重构类型推断

build/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exports.default = {
22
emmyDebuggerVersion: '1.8.4',
33
emmyDebuggerUrl: 'https://github.com/EmmyLua/EmmyLuaDebugger/releases/download',
4-
newLanguageServerVersion: "0.7.0",
4+
newLanguageServerVersion: "0.7.1",
55
newLanguageServerUrl: "https://github.com/CppCXY/emmylua-analyzer-rust/releases/download"
66
}

debugger/Emmy.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---@meta
2+
13
-- Copyright (c) 2017. tangzx([email protected])
24
--
35
-- Licensed under the Apache License, Version 2.0 (the "License");

debugger/emmy/emmyHelper.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---@meta
2+
13
-- Copyright (c) 2017. tangzx([email protected])
24
--
35
-- Licensed under the Apache License, Version 2.0 (the "License");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "emmylua",
33
"displayName": "EmmyLua",
44
"description": "EmmyLua for vscode",
5-
"version": "0.9.17",
5+
"version": "0.9.18",
66
"icon": "res/icon.png",
77
"publisher": "tangzx",
88
"engines": {

syntaxes/schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
},
143143
"strict": {
144144
"default": {
145+
"arrayIndex": true,
145146
"requirePath": false,
146147
"typeCall": false
147148
},
@@ -839,6 +840,11 @@
839840
"EmmyrcStrict": {
840841
"type": "object",
841842
"properties": {
843+
"arrayIndex": {
844+
"description": "Whether to enable strict mode array indexing.",
845+
"default": true,
846+
"type": "boolean"
847+
},
842848
"requirePath": {
843849
"description": "Whether to enable strict mode require path.",
844850
"default": false,

0 commit comments

Comments
 (0)