LuaLS / LuaLS/lua-language-server
editor.codeActionsOnSave with extension slows down file saving in VS Code
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Lua
- Star
- 4.4k
- Fork
- 442
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows 11 Pro 22H2 22621.2134
What is the issue affecting?
Other
Expected Behaviour
I have a huge lua file with a ~3k lines in a big workspace folder with ~1k lua files.
I expect that the file is saved instantly, as it was before when I used Windows 10.
Actual Behaviour
But a week ago I switched to Windows 11 and now I noticed that saving the file takes about 2 seconds.
When the lua-language-server extension is disabled in VS Code, the file is saved instantly.
I tried to set Workspace Event - None and disable Diagnostics but it didn't help
Reproduction steps
- Change large lua file
- Press Ctrl+S
- Wait 2 seconds before the extension allows VS Code to save the file to disk
Additional Notes
I found a stall message
File saving "sv_player.lua": Getting the code action from "'Lua'"
([configure] (command:workbench.action.openSettings?%5B%22editor.codeActionsOnSave%22%5D)).
Log File
No response
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Không có tệp mã nguồn hoặc bài kiểm thử nào được nêu. Hãy tái hiện độ trễ trong Visual Studio Code với tệp Lua lớn và workspace được mô tả, sau đó truy vết cách extension xử lý editor.codeActionsOnSave và trạng thái bị đình trệ tại "Getting the code action". Công việc được xem là hoàn tất khi thao tác lưu không còn gây ra độ trễ đã báo cáo khi extension được bật và có kiểm thử hồi quy bao phủ kịch bản này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- lua, vscode
- Lĩnh vực
- devtools, performance
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100