We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio Code Extension (sumneko.lua)
Windows
Annotations, Type Checking, Completion, Diagnostics/Syntax Checking
repeat <command> until <condition>
我预期<condition>应当正确解析。
<condition>
<condition>中来自其他包的函数完全无法解析。
建立文件A.lua:
A.lua
---@class A local A = {} ---comment ---@param x integer ---@return integer function A.B(x) return x + 1 end return A
建立文件main.lua:
main.lua
local A = require("A") function C() local X = 0 repeat X = A.B(X) until A.B(X) > 10 end return C
效果如下(注意两次调用函数时的区别) 鼠标移上去,弹出来的也不对 作为对照,这是正常效果:
No response
[19:43:07.597][info] [#0:c:/Users/q-you/.vscode/extensions/sumneko.lua-3.6.19-win32-x64/server\main.lua:66]: Lua Lsp startup, root: c:/Users/q-you/.vscode/extensions/sumneko.lua-3.6.19-win32-x64/server [19:43:07.597][info] [#0:c:/Users/q-you/.vscode/extensions/sumneko.lua-3.6.19-win32-x64/server\main.lua:67]: ROOT: c:/Users/q-you/.vscode/extensions/sumneko.lua-3.6.19-win32-x64/server [19:43:07.597][info] [#0:c:/Users/q-you/.vscode/extensions/sumneko.lua-3.6.19-win32-x64/server\main.lua:68]: LOGPATH: c:/Users/q-you/.vscode/extensions/sumneko.lua-3.6.19-win32-x64/server/log [19:43:07.597][info] [#0:c:/Users/q-you/.vscode/extensions/sumneko.lua-3.6.19-win32-x64/server\main.lua:69]: METAPATH: c:/Users/q-you/.vscode/extensions/sumneko.lua-3.6.19-win32-x64/server/meta [19:43:07.613][info] [#0:c:/Users/q-you/.vscode/extensions/sumneko.lua-3.6.19-win32-x64/server\main.lua:70]: VERSION: 3.6.19 [19:43:10.676][info] [#0:script\service\service.lua:144]: ========= Medical Examination Report ========= --------------- Memory --------------- Total: 2.115 MB # 00 : 2.115 MB # 01 : 0.000 MB # 02 : 0.000 MB # 03 : 0.000 MB # 04 : 0.000 MB --------------- Coroutine --------------- Total: 0 Running: 0 Suspended: 0 Normal: 0 Dead: 0 --------------- Cache --------------- Total: 1 Dead: 0 --------------- RPC --------------- Holdon: 0 Waiting: 0 ============================================== [19:43:10.847][info] [#0:script\client.lua:657]: Client init { capabilities = { general = { markdown = { allowedTags = { "ul", "li", "p", "code", "blockquote", "ol", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "em", "pre", "table", "thead", "tbody", "tr", "th", "td", "div", "del", "a", "strong", "br", "img", "span" }, parser = "marked", version = "1.1.0" }, positionEncodings = { "utf-16" }, regularExpressions = { engine = "ECMAScript", version = "ES2020" }, staleRequestSupport = { cancel = true, retryOnContentModified = { "textDocument/semanticTokens/full", "textDocument/semanticTokens/range", "textDocument/semanticTokens/full/delta" } } }, notebookDocument = { synchronization = { dynamicRegistration = true, executionSummarySupport = true } }, textDocument = { callHierarchy = { dynamicRegistration = true }, codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, disabledSupport = true, dynamicRegistration = true, honorsChangeAnnotations = false, isPreferredSupport = true, resolveSupport = { properties = { "edit" } } }, codeLens = { dynamicRegistration = true }, colorProvider = { dynamicRegistration = true }, completion = { completionItem = { commitCharactersSupport = true, deprecatedSupport = true, documentationFormat = { "markdown", "plaintext" }, insertReplaceSupport = true, insertTextModeSupport = { valueSet = { 1, 2 } }, labelDetailsSupport = true, preselectSupport = true, resolveSupport = { properties = { "documentation", "detail", "additionalTextEdits" } }, snippetSupport = true, tagSupport = { valueSet = { 1 } } }, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } }, completionList = { itemDefaults = { "commitCharacters", "editRange", "insertTextFormat", "insertTextMode" } }, contextSupport = true, dynamicRegistration = true, insertTextMode = 2 }, declaration = { dynamicRegistration = true, linkSupport = true }, definition = { dynamicRegistration = true, linkSupport = true }, diagnostic = { dynamicRegistration = true, relatedDocumentSupport = false }, documentHighlight = { dynamicRegistration = true }, documentLink = { dynamicRegistration = true, tooltipSupport = true }, documentSymbol = { dynamicRegistration = true, hierarchicalDocumentSymbolSupport = true, labelSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } }, tagSupport = { valueSet = { 1 } } }, foldingRange = { dynamicRegistration = true, foldingRange = { collapsedText = false }, foldingRangeKind = { valueSet = { "comment", "imports", "region" } }, lineFoldingOnly = true, rangeLimit = 5000 }, formatting = { dynamicRegistration = true }, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = true }, implementation = { dynamicRegistration = true, linkSupport = true }, inlayHint = { dynamicRegistration = true, resolveSupport = { properties = { "tooltip", "textEdits", "label.tooltip", "label.location", "label.command" } } }, inlineValue = { dynamicRegistration = true }, linkedEditingRange = { dynamicRegistration = true }, onTypeFormatting = { dynamicRegistration = true }, publishDiagnostics = { codeDescriptionSupport = true, dataSupport = true, relatedInformation = true, tagSupport = { valueSet = { 1, 2 } }, versionSupport = false }, rangeFormatting = { dynamicRegistration = true }, references = { dynamicRegistration = true }, rename = { dynamicRegistration = true, honorsChangeAnnotations = true, prepareSupport = true, prepareSupportDefaultBehavior = 1 }, selectionRange = { dynamicRegistration = true }, semanticTokens = { augmentsSyntaxTokens = true, dynamicRegistration = true, formats = { "relative" }, multilineTokenSupport = false, overlappingTokenSupport = false, requests = { full = { delta = true }, range = true }, serverCancelSupport = true, tokenModifiers = { "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary" }, tokenTypes = { "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator", "decorator" } }, signatureHelp = { contextSupport = true, dynamicRegistration = true, signatureInformation = { activeParameterSupport = true, documentationFormat = { "markdown", "plaintext" }, parameterInformation = { labelOffsetSupport = true } } }, synchronization = { didSave = true, dynamicRegistration = true, willSave = true, willSaveWaitUntil = true }, typeDefinition = { dynamicRegistration = true, linkSupport = true }, typeHierarchy = { dynamicRegistration = true } }, window = { showDocument = { support = true }, showMessage = { messageActionItem = { additionalPropertiesSupport = true } }, workDoneProgress = true }, workspace = { applyEdit = true, codeLens = { refreshSupport = true }, configuration = true, diagnostics = { refreshSupport = true }, didChangeConfiguration = { dynamicRegistration = true }, didChangeWatchedFiles = { dynamicRegistration = true, relativePatternSupport = true }, executeCommand = { dynamicRegistration = true }, fileOperations = { didCreate = true, didDelete = true, didRename = true, dynamicRegistration = true, willCreate = true, willDelete = true, willRename = true }, inlayHint = { refreshSupport = true }, inlineValue = { refreshSupport = true }, semanticTokens = { refreshSupport = true }, symbol = { dynamicRegistration = true, resolveSupport = { properties = { "location.range" } }, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } }, tagSupport = { valueSet = { 1 } } }, workspaceEdit = { changeAnnotationSupport = { groupsOnLabel = true }, documentChanges = true, failureHandling = "textOnlyTransactional", normalizesLineEndings = true, resourceOperations = { "create", "rename", "delete" } }, workspaceFolders = true } }, clientInfo = { name = "Visual Studio Code", version = "1.78.2" }, initializationOptions = { changeConfiguration = true }, locale = "zh-cn", processId = 12872, rootPath = <has moved>, rootUri = <has moved>, trace = "off", workDoneToken = "baa2a8a4-053b-4a35-86e8-3d13c9c11775", workspaceFolders = { { name = "functions", uri = <has moved> } } } [19:43:10.863][info] [#0:script\language.lua:137]: VSC language: zh-cn [19:43:10.863][info] [#0:script\language.lua:138]: LS language: zh-cn [19:43:10.863][info] [#0:script\workspace\workspace.lua:38]: Workspace init root: <has moved> [19:43:10.863][info] [#0:script\workspace\workspace.lua:42]: Log path: <has moved>
The text was updated successfully, but these errors were encountered:
7aac174
No branches or pull requests
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Annotations, Type Checking, Completion, Diagnostics/Syntax Checking
Expected Behaviour
repeat <command> until <condition>
我预期
<condition>
应当正确解析。Actual Behaviour
<condition>
中来自其他包的函数完全无法解析。Reproduction steps
建立文件
A.lua
:建立文件
main.lua
:效果如下(注意两次调用函数时的区别)



鼠标移上去,弹出来的也不对
作为对照,这是正常效果:
Additional Notes
No response
Log File
The text was updated successfully, but these errors were encountered: