Skip to content

File won't been fully diagnosed until opened 打开文件前它不会被完全诊断 #2265

@mercury233

Description

@mercury233

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?

Diagnostics/Syntax Checking

Expected Behaviour

When clicked "Perform workspace diagnosis", diagnose all files fully.
点击诊断按钮后完整诊断所有文件

Actual Behaviour

Some problems don't appear before I open some file and trigger the diagnosis again.
有些问题没有被诊断出来,我打开某个文件重新触发诊断才显示

Reproduction steps

Clone and open https://github.com/mercury233/lua-test

image
As you can see, the test2.lua is diagnosed automatically, but only 1 problem is shown.
可以看到,test2.lua已经被诊断了,但只显示1个问题

image
Open that file, the another problem appears.
打开文件后才显示其他问题

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUser has a question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions