Skip to content

Commit 8898f07

Browse files
committed
Fix incorrect version in view document
1 parent bf42d5e commit 8898f07

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"type": "lua",
2727
"request": "attach",
2828
"stopOnEntry": false,
29-
"address": "127.0.0.1:11414",
29+
"address": "127.0.0.1:11422",
3030
"outputCapture": [
3131
],
3232
"sourceFormat": "string",

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* `New` Omit parameter hints when the argument name matches
77
* `FIX` Fix a typo in `no-unknown` diagnostic message
88
* `FIX` Autodoc generation so it does not include documentation for builtin Lua language features
9+
* `FIX` Fix incorrect version in `view document`
910

1011
## 3.16.1
1112
`2025-12-8`

locale/zh-cn/script.lua

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,15 +374,17 @@ SYMBOL_ANONYMOUS =
374374
HOVER_VIEW_DOCUMENTS =
375375
'查看文档'
376376
HOVER_DOCUMENT_LUA51 =
377-
'http://www.lua.org/manual/5.1/manual.html#{}'
377+
'https://www.lua.org/manual/5.1/manual.html#{}'
378378
HOVER_DOCUMENT_LUA52 =
379-
'http://www.lua.org/manual/5.2/manual.html#{}'
379+
'https://www.lua.org/manual/5.2/manual.html#{}'
380380
HOVER_DOCUMENT_LUA53 =
381-
'http://cloudwu.github.io/lua53doc/manual.html#{}'
381+
'https://cloudwu.github.io/lua53doc/manual.html#{}'
382382
HOVER_DOCUMENT_LUA54 =
383-
'http://www.lua.org/manual/5.4/manual.html#{}'
383+
'https://www.lua.org/manual/5.4/manual.html#{}'
384+
HOVER_DOCUMENT_LUA55 =
385+
'https://www.lua.org/work/doc/manual.html#{}'
384386
HOVER_DOCUMENT_LUAJIT =
385-
'http://www.lua.org/manual/5.1/manual.html#{}'
387+
'https://www.lua.org/manual/5.1/manual.html#{}'
386388
HOVER_NATIVE_DOCUMENT_LUA51 =
387389
'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
388390
HOVER_NATIVE_DOCUMENT_LUA52 =
@@ -391,6 +393,8 @@ HOVER_NATIVE_DOCUMENT_LUA53 =
391393
'command:extension.lua.doc?["zh-cn/53/manual.html/{}"]'
392394
HOVER_NATIVE_DOCUMENT_LUA54 =
393395
'command:extension.lua.doc?["en-us/54/manual.html/{}"]'
396+
HOVER_NATIVE_DOCUMENT_LUA55 =
397+
'command:extension.lua.doc?["en-us/55/manual.html/{}"]'
394398
HOVER_NATIVE_DOCUMENT_LUAJIT =
395399
'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
396400
HOVER_MULTI_PROTOTYPE =

script/library.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ local function convertLink(uri, text)
8080
end)
8181
end
8282

83-
local function createViewDocument(name)
84-
local fmt = getDocFormater()
83+
local function createViewDocument(uri, name)
84+
local fmt = getDocFormater(uri)
8585
if not fmt then
8686
return nil
8787
end
@@ -136,7 +136,7 @@ local function compileSingleMetaDoc(uri, script, metaLang, status)
136136
compileBuf[#compileBuf+1] = convertLink(uri, line)
137137
compileBuf[#compileBuf+1] = '\n'
138138
end
139-
local viewDocument = createViewDocument(name)
139+
local viewDocument = createViewDocument(uri, name)
140140
if viewDocument then
141141
compileBuf[#compileBuf+1] = '---\n---'
142142
compileBuf[#compileBuf+1] = viewDocument

0 commit comments

Comments
 (0)