LuaLS / LuaLS/lua-language-server

检测时间过长,导致操作失败。。。。。。。

Open
#2,872 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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?

Type Checking

### Expected Behaviour

进行多条的if...elseif..end操作后,点击代码块收缩。

### Actual Behaviour

出现收缩代码块操作不响应,或者操作后长时间才会响应的情况。

### Reproduction steps

if
...
elseif
...
end
当中的elseif有6条左右

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

Start by reproducing the issue in the Visual Studio Code extension on Windows with an if/elseif/end block containing about six elseif branches. Observe folding responsiveness and compare the delay before and after folding; done means code-block folding responds without a long pause for the reported example.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.