LuaLS / LuaLS/lua-language-server

当触发定时的lua诊断时, 无法操作代码块的折叠或展开

Open
#1,534 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Info Needed
Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

### 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

折叠功能应该在插件的诊断阶段和非诊断阶段都是正常的

### Actual Behaviour

当触发定时的lua诊断时, 折叠的代码块会有以下可能:
1. 折叠自动展开
2. 无法折叠或者展开

### Reproduction steps

1. Go to
2. Click
3. See error

### Additional Notes

_No response_

### Log File

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Windows in the Visual Studio Code Extension while scheduled Lua diagnostics run, comparing folding before, during, and after diagnostics. No source file, test, or log is identified, so trace the interaction between diagnostics and folding; done means code blocks remain foldable and expandable in every state.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.