Skip to content

Commit 888bb1a

Browse files
authored
Merge branch 'LuaLS:master' into master
2 parents 7e6a31d + ba75a68 commit 888bb1a

File tree

18 files changed

+122
-151
lines changed

18 files changed

+122
-151
lines changed

3rd/bee.lua

Submodule bee.lua updated 50 files

3rd/luamake

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
# changelog
22

33
## 3.6.11
4+
`2023-2-13`
45
* `CHG` completion: don't show loading process
56
* `FIX` [#1886]
67
* `FIX` [#1887]
78
* `FIX` [#1889]
89
* `FIX` [#1895]
10+
* `FIX` [#1902]
911

1012
[#1886]: https://github.com/LuaLS/lua-language-server/issues/1886
1113
[#1887]: https://github.com/LuaLS/lua-language-server/issues/1887
1214
[#1889]: https://github.com/LuaLS/lua-language-server/issues/1889
1315
[#1895]: https://github.com/LuaLS/lua-language-server/issues/1895
16+
[#1902]: https://github.com/LuaLS/lua-language-server/issues/1902
1417

1518
## 3.6.10
1619
`2023-2-7`

doc/en-us/config.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2161,22 +2161,6 @@ integer
21612161
500
21622162
```
21632163

2164-
# workspace.supportScheme
2165-
2166-
Provide language server for the Lua files of the following scheme.
2167-
2168-
## type
2169-
2170-
```ts
2171-
Array<string>
2172-
```
2173-
2174-
## default
2175-
2176-
```jsonc
2177-
["file","untitled","git"]
2178-
```
2179-
21802164
# workspace.useGitIgnore
21812165

21822166
Ignore files list in `.gitignore` .
@@ -2207,4 +2191,4 @@ Array<string>
22072191

22082192
```jsonc
22092193
[]
2210-
```
2194+
```

doc/pt-br/config.md

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ object<string, string>
698698
```jsonc
699699
{
700700
/*
701-
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
701+
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
702702
*/
703703
"ambiguity-1": "Any",
704704
/*
@@ -946,7 +946,7 @@ object<string, string>
946946
```jsonc
947947
{
948948
/*
949-
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
949+
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
950950
*/
951951
"ambiguity-1": "Warning",
952952
/*
@@ -2161,22 +2161,6 @@ integer
21612161
500
21622162
```
21632163

2164-
# workspace.supportScheme
2165-
2166-
Provide language server for the Lua files of the following scheme.
2167-
2168-
## type
2169-
2170-
```ts
2171-
Array<string>
2172-
```
2173-
2174-
## default
2175-
2176-
```jsonc
2177-
["file","untitled","git"]
2178-
```
2179-
21802164
# workspace.useGitIgnore
21812165

21822166
Ignore files list in `.gitignore` .
@@ -2207,4 +2191,4 @@ Array<string>
22072191

22082192
```jsonc
22092193
[]
2210-
```
2194+
```

doc/zh-cn/config.md

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ object<string, string>
698698
```jsonc
699699
{
700700
/*
701-
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
701+
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
702702
*/
703703
"ambiguity-1": "Any",
704704
/*
@@ -945,7 +945,7 @@ object<string, string>
945945
```jsonc
946946
{
947947
/*
948-
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
948+
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
949949
*/
950950
"ambiguity-1": "Warning",
951951
/*
@@ -2160,22 +2160,6 @@ integer
21602160
500
21612161
```
21622162

2163-
# workspace.supportScheme
2164-
2165-
为以下 scheme 的lua文件提供语言服务。
2166-
2167-
## type
2168-
2169-
```ts
2170-
Array<string>
2171-
```
2172-
2173-
## default
2174-
2175-
```jsonc
2176-
["file","untitled","git"]
2177-
```
2178-
21792163
# workspace.useGitIgnore
21802164

21812165
忽略 `.gitignore` 中列举的文件。
@@ -2206,4 +2190,4 @@ Array<string>
22062190

22072191
```jsonc
22082192
[]
2209-
```
2193+
```

doc/zh-tw/config.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,22 +2160,6 @@ integer
21602160
500
21612161
```
21622162

2163-
# workspace.supportScheme
2164-
2165-
為以下 `scheme` 的lua檔案提供語言伺服。
2166-
2167-
## type
2168-
2169-
```ts
2170-
Array<string>
2171-
```
2172-
2173-
## default
2174-
2175-
```jsonc
2176-
["file","untitled","git"]
2177-
```
2178-
21792163
# workspace.useGitIgnore
21802164

21812165
忽略 `.gitignore` 中列舉的檔案。
@@ -2206,4 +2190,4 @@ Array<string>
22062190

22072191
```jsonc
22082192
[]
2209-
```
2193+
```

make.lua

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ lm.bindir = "bin"
44
lm.c = lm.compiler == 'msvc' and 'c89' or 'c11'
55
lm.cxx = 'c++17'
66

7+
if lm.sanitize then
8+
lm.mode = "debug"
9+
lm.flags = "-fsanitize=address"
10+
lm.gcc = {
11+
ldflags = "-fsanitize=address"
12+
}
13+
lm.clang = {
14+
ldflags = "-fsanitize=address"
15+
}
16+
end
17+
718
---@diagnostic disable-next-line: codestyle-check
819
lm.EXE_DIR = ""
920

@@ -79,23 +90,24 @@ end
7990
local platform = require 'bee.platform'
8091
local exe = platform.OS == 'Windows' and ".exe" or ""
8192

82-
lm:build "bee-test" {
83-
lm.bindir .. "/lua-language-server" .. exe, "3rd/bee.lua/test/test.lua",
93+
lm:rule "runtest" {
94+
lm.bindir .. "/lua-language-server" .. exe, "$in",
95+
description = "Run test: $in.",
8496
pool = "console",
85-
deps = {
86-
"all",
87-
}
97+
}
98+
99+
lm:build "bee-test" {
100+
rule = "runtest",
101+
deps = { "all" },
102+
input = "3rd/bee.lua/test/test.lua",
88103
}
89104

90105
lm:build 'unit-test' {
91-
lm.bindir .. "/lua-language-server" .. exe, 'test.lua',
92-
pool = "console",
93-
deps = {
94-
"bee-test",
95-
}
106+
rule = "runtest",
107+
deps = { "bee-test", "all" },
108+
input = "test.lua",
96109
}
97110

98111
lm:default {
99-
"bee-test",
100112
"unit-test",
101113
}

script/cli/doc.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ function export.runCLI()
310310
local mdPath = doc2md.buildMD(LOGPATH)
311311

312312
print(lang.script('CLI_DOC_DONE'
313-
, ('[%s](%s)'):format(ws.normalize(docPath), furi.encode(docPath))
314-
, ('[%s](%s)'):format(ws.normalize(mdPath), furi.encode(mdPath))
313+
, ('[%s](%s)'):format(files.normalize(docPath), furi.encode(docPath))
314+
, ('[%s](%s)'):format(files.normalize(mdPath), furi.encode(mdPath))
315315
))
316316
end
317317

script/core/command/exportDocument.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ local client = require 'client'
33
local furi = require 'file-uri'
44
local lang = require 'language'
55
local ws = require 'workspace'
6+
local files = require 'files'
67

78
---@async
89
return function (args)
910
local outputPath = args[1] and furi.decode(args[1]) or LOGPATH
1011
local docPath, mdPath = doc.makeDoc(outputPath)
1112
client.showMessage('Info', lang.script('CLI_DOC_DONE'
12-
, ('[%s](%s)'):format(ws.normalize(docPath), furi.encode(docPath))
13-
, ('[%s](%s)'):format(ws.normalize(mdPath), furi.encode(mdPath))
13+
, ('[%s](%s)'):format(files.normalize(docPath), furi.encode(docPath))
14+
, ('[%s](%s)'):format(files.normalize(mdPath), furi.encode(mdPath))
1415
))
1516
end

0 commit comments

Comments
 (0)