Skip to content

Commit b1a3f3e

Browse files
authored
Merge branch 'master' into fix/signature-tuple-parameters
2 parents f2152a4 + 9ffeeef commit b1a3f3e

File tree

7 files changed

+17
-9
lines changed

7 files changed

+17
-9
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
55
* `FIX` Incorrect generation of function signatures with tuple-parameters
6+
* `NEW` Doc output now contains file paths for `@alias` and `@enum` types
7+
* `FIX` Typos in a few error messages.
68
* `FIX` Incorrect inject-field message for extra table field in exact class
79
* `CHG` Rename configuration option `Lua.diagnostics.disableScheme` to `Lua.diagnostics.validScheme` and improve its description. Now it enables diagnostics for Lua files that use the specified scheme.
810
* `FIX` adds the `|lambda|` operator to the `Lua.runtime.nonstandardSymbol` configuration template, which allows the use of that option. Previously, support for it existed in the parser, but we could not actually use the option because it is not recognised in the configuration.

locale/en-us/script.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ CONFIG_MODIFY_FAIL_NO_WORKSPACE =
604604
[[
605605
Failed to modify settings:
606606
* The current mode is single-file mode, server cannot create `.luarc.json` without workspace.
607-
* The language client dose not support modifying settings from the server side.
607+
* The language client does not support modifying settings from the server side.
608608
609609
Please modify following settings manually:
610610
{}

locale/pt-br/script.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ CONFIG_MODIFY_FAIL_NO_WORKSPACE = -- TODO: need translate!
604604
[[
605605
Failed to modify settings:
606606
* The current mode is single-file mode, server cannot create `.luarc.json` without workspace.
607-
* The language client dose not support modifying settings from the server side.
607+
* The language client does not support modifying settings from the server side.
608608
609609
Please modify following settings manually:
610610
{}

script/cli/check.lua

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ local function logFileForThread(threadId)
1111
return LOGPATH .. '/check-partial-' .. threadId .. '.json'
1212
end
1313

14-
local function buildArgs(exe, numThreads, threadId, format, quiet)
15-
local args = {exe}
14+
local function buildArgs(minIndex, numThreads, threadId, format, quiet)
15+
local args = {}
1616
local skipNext = false
17-
for i = 1, #arg do
17+
for i = minIndex, #arg do
1818
local arg = arg[i]
1919
-- --check needs to be transformed into --check_worker
2020
if arg:lower():match('^%-%-check$') or arg:lower():match('^%-%-check=') then
@@ -56,9 +56,10 @@ function export.runCLI()
5656
exe = arg[minIndex]
5757
minIndex = minIndex - 1
5858
end
59+
minIndex = minIndex + 1
5960
-- TODO: is this necessary? got it from the shell.lua helper in bee.lua tests
6061
if platform.os == 'windows' and not exe:match('%.[eE][xX][eE]$') then
61-
exe = exe..'.exe'
62+
arg[minIndex] = exe..'.exe'
6263
end
6364

6465
if not QUIET and numThreads > 1 then
@@ -67,7 +68,7 @@ function export.runCLI()
6768

6869
local procs = {}
6970
for i = 1, numThreads do
70-
local process, err = subprocess.spawn({buildArgs(exe, numThreads, i, CHECK_FORMAT, QUIET)})
71+
local process, err = subprocess.spawn({buildArgs(minIndex, numThreads, i, CHECK_FORMAT, QUIET)})
7172
if err then
7273
print(err)
7374
end

script/cli/doc/export.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ export.makeDocObject['INIT'] = function(source, has_seen)
147147
end
148148

149149
export.makeDocObject['doc.alias'] = function(source, obj, has_seen)
150+
obj.file = export.getLocalPath(guide.getUri(source))
151+
end
150152

153+
export.makeDocObject['doc.enum'] = function(source, obj, has_seen)
154+
obj.file = export.getLocalPath(guide.getUri(source))
151155
end
152156

153157
export.makeDocObject['doc.field'] = function(source, obj, has_seen)
@@ -256,6 +260,7 @@ export.makeDocObject['variable'] = function(source, obj, has_seen)
256260
or set.type == 'setmethod'
257261
or set.type == 'setindex'
258262
or set.type == 'doc.alias'
263+
or set.type == 'doc.enum'
259264
or set.type == 'doc.class'
260265
then
261266
table.insert(obj.defines, export.documentObject(set, has_seen))

script/client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ local function tryModifyClientGlobal(finalChanges)
480480
end
481481
log.info('tryModifyClientGlobal', inspect(finalChanges))
482482
if not m.getOption 'changeConfiguration' then
483-
log.info('Client dose not support modifying config')
483+
log.info('Client does not support modifying config')
484484
return
485485
end
486486
local changes = {}

script/core/hover/description.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ local function tryDocEnum(source)
507507
end
508508
if field.value.type == 'integer'
509509
or field.value.type == 'string' then
510-
md:add('lua', (' %s: %s = %s,'):format(key, field.value.type, field.value[1]))
510+
md:add('lua', (' %s: %s = %q,'):format(key, field.value.type, field.value[1]))
511511
end
512512
if field.value.type == 'binary'
513513
or field.value.type == 'unary' then

0 commit comments

Comments
 (0)